[sage-support] suggested improvement for simplify_trig

2012-01-25 Thread Jesús TC
Hi all! This is my 1st message here, so I hope not to do something not appropriate. Working through a simple problem, I noticed that Sage fails in simplifying things like cos((1/7)*pi) + cos((6/7)*pi) to zero, which Mathematica does correctly. I have tested it up to the 5.0 beta1 Curiously,

Re: [sage-support] suggested improvement for simplify_trig

2012-01-25 Thread William Stein
On Tue, Jan 24, 2012 at 4:11 AM, Jesús TC jesu...@gmail.com wrote: Hi all! This is my 1st message here, so I hope not to do something not appropriate. Working through a simple problem, I noticed that Sage fails in simplifying things like   cos((1/7)*pi) + cos((6/7)*pi) to zero, which

[sage-support] Re: suggested improvement for simplify_trig

2012-01-25 Thread kcrisman
Probably that should be implemented inside the trigonometric functions code itself, instead of in any of the simplify's. What do you think? +1 It's indeed annoying that Sage doesn't do this simplification (because Maxima doesn't). Though that would be a red herring if we wanted

[sage-support] discard and quit

2012-01-25 Thread john_perry_usm
Hi In the notebook, what is the difference between Discard quit and Save quit? regards john perry -- 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

Re: [sage-support] Re: suggested improvement for simplify_trig

2012-01-25 Thread William Stein
On Wed, Jan 25, 2012 at 7:25 AM, kcrisman kcris...@gmail.com wrote: Probably that should be implemented inside the trigonometric functions code itself, instead of in any of the simplify's. What do you think? +1 It's indeed annoying that Sage doesn't do this simplification (because

[sage-support] Re: discard and quit

2012-01-25 Thread Jason Grout
On 1/25/12 10:56 AM, john_perry_usm wrote: Hi In the notebook, what is the difference between Discard quit and Save quit? IIRC, if you have been editing a cell, but have not yet evaluated it, or if you have edited a text cell but not yet saved it, then Discard will throw away those

Re: [sage-support] Re: discard and quit

2012-01-25 Thread William Stein
On Wed, Jan 25, 2012 at 10:45 AM, Jason Grout jason-s...@creativetrax.com wrote: On 1/25/12 10:56 AM, john_perry_usm wrote: Hi In the notebook, what is the difference between Discard  quit and Save  quit? IIRC, if you have been editing a cell, but have not yet evaluated it, or if you

[sage-support] Re: discard and quit

2012-01-25 Thread kcrisman
On Jan 25, 1:58 pm, William Stein wst...@gmail.com wrote: On Wed, Jan 25, 2012 at 10:45 AM, Jason Grout jason-s...@creativetrax.com wrote: On 1/25/12 10:56 AM, john_perry_usm wrote: Hi In the notebook, what is the difference between Discard  quit and Save  quit? IIRC, if

[sage-support] Re: discard and quit

2012-01-25 Thread john_perry_usm
On Wed, Jan 25, 2012 at 10:45 AM, Jason Grout IIRC, if you have been editing a cell, but have not yet evaluated it, or if you have edited a text cell but not yet saved it, then Discard will throw away those changes, and Save will save them.  Note that if you evaluate a cell, it

Re: [sage-support] Re: discard and quit

2012-01-25 Thread Mike Witt
On 01/25/2012 01:27:11 PM, john_perry_usm wrote: On Wed, Jan 25, 2012 at 10:45 AM, Jason Grout IIRC, if you have been editing a cell, but have not yet evaluated it, or if you have edited a text cell but not yet saved it, then Discard will throw away those changes, and Save will

[sage-support] Re: discard and quit

2012-01-25 Thread Jason Grout
On 1/25/12 3:27 PM, john_perry_usm wrote: So it's not a bug. What about a feature request? Discarding even evaluated cells since the last save would be_really_ useful to me ('twould have saved my bacon a few times). But is that something infeasible? No, it's not infeasible. We'd just have

[sage-support] differentiate Bessel functions

2012-01-25 Thread Eric Kangas
Hi, I am having issues with creating first and second ordered derivatives for a function that includes bessel functions. Psi = lambda r,z: (r*bessel_J(1, g*r))/(ro*bessel_J(1, gro))*cos(k*z) I tried using derivative(Psi, r) this is the error I get: ERROR: An unexpected error occurred while

Re: [sage-support] Sage on the latest Ubuntu, _md5 ImportError

2012-01-25 Thread Ondřej Čertík
On Tue, Jan 24, 2012 at 9:58 PM, William Stein wst...@gmail.com wrote: On Tuesday, January 24, 2012, Ondřej Čertík ondrej.cer...@gmail.com wrote: On Tue, Jan 24, 2012 at 3:31 PM, Jaap Spies j.sp...@hccnet.nl wrote: Ondřej Čertík wrote: Hi, Hi Ondrej, I downloaded the latest Sage

[sage-support] Re: discard and quit

2012-01-25 Thread kcrisman
On Jan 25, 5:04 pm, Jason Grout jason-s...@creativetrax.com wrote: On 1/25/12 3:27 PM, john_perry_usm wrote: So it's not a bug. What about a feature request? Discarding even evaluated cells since the last save would be_really_  useful to me ('twould have saved my bacon a few times). But

[sage-support] Re: differentiate Bessel functions

2012-01-25 Thread kcrisman
I think it has to do with the lambda function causing this issue. Correct. Sage can only differentiate symbolic functions. Making Bessel J functions symbolic is http://trac.sagemath.org/sage_trac/ticket/4102. You may want to look at http://ask.sagemath.org/question/314/bessel-functions for

[sage-support] Re: differentiate Bessel functions

2012-01-25 Thread Eric Kangas
g, ro, and gro, k are constants. On Jan 25, 6:52 pm, kcrisman kcris...@gmail.com wrote: I think it has to do with the lambda function causing this issue. Correct.  Sage can only differentiate symbolic functions.  Making Bessel J functions symbolic

[sage-support] Subgroups of class group

2012-01-25 Thread dkrumm
How can one create a subgroup of the ideal class group of a number field by specifying a list of ideals to use as generators? I've tried using the subgroup commands, with no success. Any help would be much appreciated. -- To post to this group, send email to sage-support@googlegroups.com To

Re: [sage-support] Re: discard and quit

2012-01-25 Thread William Stein
On Jan 25, 2012 6:47 PM, kcrisman kcris...@gmail.com wrote: On Jan 25, 5:04 pm, Jason Grout jason-s...@creativetrax.com wrote: On 1/25/12 3:27 PM, john_perry_usm wrote: So it's not a bug. What about a feature request? Discarding even evaluated cells since the last save would