[sage-support] Re: Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-21 Thread Keshav Kini
Er, have you perhaps sent this to the wrong list?

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Issues with bessel function.

2012-01-21 Thread Eric Kangas
Not sure how to go about doing that. Anyways I tried running the code
for the previous bessel functions I successfully plotted, and the
error shows up as well. Looks like there is an issue with the sage
code not sure where, and what I can do about it. Also I keep the
previous version on hand in cause I have an issue however the same
error pops up.

On Jan 19, 4:17 pm, Michael Orlitzky mich...@orlitzky.com wrote:
 On 01/19/2012 05:57 PM, Eric Kangas wrote:

  I have worked with bessel functions before and haven't had a problem
  until now.

  Code:
  -
  r,p,z,ro,gro,g,k = var('r, p, z,ro,gro,g,k')
  g = 1; k = 1; ro = 1; gro = 1

  def Psi(r,z): return lambda r,z: (r*bessel_J(1, g*r))/(ro*bessel_J(1,
  gro))*cos(k*z) if y != 0 and t != 0 else infinity

  Error:
  -

  Syntax Error

 What are 'y' and 't'? When did it crash -- while you were typing it in,
 when Psi was called, or when the returned function was called?

 I tried guessing at some inputs and haven't seen the error. If you could
 come up with a test case it would help!

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Order of a cyclic group

2012-01-21 Thread Santanu Sarkar
Thanks for the help.

On 21 January 2012 07:27, Maarten Derickx m.derickx.stud...@gmail.com wrote:
 Well the way I first tried is as follows:

 age: F.x=GF(2)[]
 sage: G.a=F.quotient(x^6 + x^4 + x^2 + x + 1)
 sage: a.multiplicative_order()
 ---
 NotImplementedError                       Traceback (most recent call last)


 But it gives a not implemented error. Luckily the following does work:

 sage: G.a=GF(2^6,modulus=x^6 + x^4 + x^2 + x + 1)
 sage: a.multiplicative_order()
 21

 --
 To post to this group, send email to sage-support@googlegroups.com
 To unsubscribe from this group, send email to
 sage-support+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/sage-support
 URL: http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Issues with bessel function.

2012-01-21 Thread kcrisman
I think what Michael means is that if we saw an entire (failing)
session it would help debug things more easily.  You can paste it
here, or someplace like http://pastebin.com/ if it's pretty long.

On Jan 21, 5:21 am, Eric Kangas eric.c.kan...@gmail.com wrote:
 Not sure how to go about doing that. Anyways I tried running the code
 for the previous bessel functions I successfully plotted, and the
 error shows up as well. Looks like there is an issue with the sage
 code not sure where, and what I can do about it. Also I keep the
 previous version on hand in cause I have an issue however the same
 error pops up.

 On Jan 19, 4:17 pm, Michael Orlitzky mich...@orlitzky.com wrote:







  On 01/19/2012 05:57 PM, Eric Kangas wrote:

   I have worked with bessel functions before and haven't had a problem
   until now.

   Code:
   -
   r,p,z,ro,gro,g,k = var('r, p, z,ro,gro,g,k')
   g = 1; k = 1; ro = 1; gro = 1

   def Psi(r,z): return lambda r,z: (r*bessel_J(1, g*r))/(ro*bessel_J(1,
   gro))*cos(k*z) if y != 0 and t != 0 else infinity

   Error:
   -

   Syntax Error

  What are 'y' and 't'? When did it crash -- while you were typing it in,
  when Psi was called, or when the returned function was called?

  I tried guessing at some inputs and haven't seen the error. If you could
  come up with a test case it would help!

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Issues with bessel function.

2012-01-21 Thread Eric Kangas
So I take it I am suppose to use debug which should the generate the
list.

On Jan 21, 5:56 am, kcrisman kcris...@gmail.com wrote:
 I think what Michael means is that if we saw an entire (failing)
 session it would help debug things more easily.  You can paste it
 here, or someplace likehttp://pastebin.com/if it's pretty long.

 On Jan 21, 5:21 am, Eric Kangas eric.c.kan...@gmail.com wrote:

  Not sure how to go about doing that. Anyways I tried running the code
  for the previous bessel functions I successfully plotted, and the
  error shows up as well. Looks like there is an issue with the sage
  code not sure where, and what I can do about it. Also I keep the
  previous version on hand in cause I have an issue however the same
  error pops up.

  On Jan 19, 4:17 pm, Michael Orlitzky mich...@orlitzky.com wrote:

   On 01/19/2012 05:57 PM, Eric Kangas wrote:

I have worked with bessel functions before and haven't had a problem
until now.

Code:
-
r,p,z,ro,gro,g,k = var('r, p, z,ro,gro,g,k')
g = 1; k = 1; ro = 1; gro = 1

def Psi(r,z): return lambda r,z: (r*bessel_J(1, g*r))/(ro*bessel_J(1,
gro))*cos(k*z) if y != 0 and t != 0 else infinity

Error:
-

Syntax Error

   What are 'y' and 't'? When did it crash -- while you were typing it in,
   when Psi was called, or when the returned function was called?

   I tried guessing at some inputs and haven't seen the error. If you could
   come up with a test case it would help!

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-21 Thread Chris Seberino
Ug! Please accept my apology.

cs

On Jan 21, 3:25 am, Keshav Kini keshav.k...@gmail.com wrote:
 Er, have you perhaps sent this to the wrong list?

 -Keshav

 
 Join us in #sagemath on irc.freenode.net !

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Issues with bessel function.

2012-01-21 Thread kcrisman


On Jan 21, 10:48 am, Eric Kangas eric.c.kan...@gmail.com wrote:
 So I take it I am suppose to use debug which should the generate the
 list.

Sure, use pdb or start Sage with ./sage -gdb if you want.  What I
meant was for you to post the current session that fails - just post
exactly what you did all the way up until then.

If you are using the notebook, one way to get at this easily is to
click the Edit button and paste everything from the top until the
end of the error.  Again, use pastebin.com if it's really long.

If we can't reproduce the error, it's hard to know how to help,
unfortunately :( but hopefully this will help.

- kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Issues with bessel function.

2012-01-21 Thread Eric Kangas
If I did this correctly. This is the error I get from the debugger.

error:
-
*** SyntaxError: can't assign to function call (stdin, line 1)

the code I used was:
-
r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
g = 1; k = 1; ro = 1; gro = 1
Psi(r,z) = lambda r,z: ((r*bessel_J(1, g*r))/
(ro*bessel_J(1,gro)))*(cos(k*z))

The psi function is the line of code that has the issue.

The steps I took to use the debugger was:

sage:pdb
Automatic pdb calling has been turned ON
sage: r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
sage: g = 1; k = 1; ro = 1; gro = 1
sage: Psi(r,z) = lambda r,z: ((r*bessel_J(1, g*r))/
(ro*bessel_J(1,gro)))*(cos(k*z))
---
TypeError Traceback (most recent call
last)

/home/nooniensoong97/ipython console in module()

/home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-
i686-Linux/local/lib/python2.6/site-packages/sage/calculus/all.pyc in
symbolic_expression(x)
 94 return vector(SR,x)
 95 else:
--- 96 return SR(x)
 97
 98 import desolvers

/home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-
i686-Linux/local/lib/python2.6/site-packages/sage/structure/parent.so
in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7326)
()

/home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-
i686-Linux/local/lib/python2.6/site-packages/sage/structure/
coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/
structure/coerce_maps.c:3268)()

/home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-
i686-Linux/local/lib/python2.6/site-packages/sage/structure/
coerce_maps.so in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/
structure/coerce_maps.c:3171)()

/home/nooniensoong97/programs/sage-4.7.2-linux-32bit-ubuntu_10.04_lts-
i686-Linux/local/lib/python2.6/site-packages/sage/symbolic/ring.so in
sage.symbolic.ring.SymbolicRing._element_constructor_ (sage/symbolic/
ring.cpp:4418)()

TypeError:
 /home/nooniensoong97/ring.pyx(285)sage.symbolic.ring.SymbolicRing._element_constructor_
  (sage/symbolic/ring.cpp:4418)()


ipdb Psi(r,z) = lambda r,z: ((r*bessel_J(1, g*r))/
(ro*bessel_J(1,gro)))*(cos(k*z))
*** SyntaxError: can't assign to function call (stdin, line 1)


On Jan 21, 1:41 pm, kcrisman kcris...@gmail.com wrote:
 On Jan 21, 10:48 am, Eric Kangas eric.c.kan...@gmail.com wrote:

  So I take it I am suppose to use debug which should the generate the
  list.

 Sure, use pdb or start Sage with ./sage -gdb if you want.  What I
 meant was for you to post the current session that fails - just post
 exactly what you did all the way up until then.

 If you are using the notebook, one way to get at this easily is to
 click the Edit button and paste everything from the top until the
 end of the error.  Again, use pastebin.com if it's really long.

 If we can't reproduce the error, it's hard to know how to help,
 unfortunately :( but hopefully this will help.

 - kcrisman

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Issues with bessel function.

2012-01-21 Thread Renan Birck Pinheiro
2012/1/22 Eric Kangas eric.c.kan...@gmail.com

 If I did this correctly. This is the error I get from the debugger.

 error:
 -
 *** SyntaxError: can't assign to function call (stdin, line 1)

 the code I used was:
 -
 r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
 g = 1; k = 1; ro = 1; gro = 1
 Psi(r,z) = lambda r,z: ((r*bessel_J(1, g*r))/
 (ro*bessel_J(1,gro)))*(cos(k*z))

 The psi function is the line of code that has the issue.



Do not use 'Psi(r,z) = ...', just use 'Psi = ...'. Such as:

r,p,z,g,k,ro,gro = var('r,p,z,g,k,ro,gro')
g = 1; k = 1; ro = 1; gro = 1
Psi = lambda r,z: ((r*bessel_J(1, g*r))/ (ro*bessel_J(1,gro)))*(cos(k*z))


-- 
Renan Birck Pinheiro, Grupo de Microeletrônica
http://www.ufsm.br/gmicro, Engenharia
Elétrica http://www.ufsm.br/cee, UFSM http://www.ufsm.br - Santa Maria,
Brazil

http://renanbirck.blogspot.com / skype: renan.ee.ufsm / (55) 91433210

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org