[sage-support] Solve for a function defined in a file?

2014-06-10 Thread David Ingerman
How to solve([f(x)==0],x) for a function f(x) defined in a .sage file? The error message: TypeError: Cannot evaluate symbolic expression to a numeric value. Thank you... -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from

[sage-support] How to plot output of solve()?

2014-06-10 Thread David Ingerman
How to plot output of solve() on coordinate plane? For example: show((solve([mu^6==1],mu))) gives symbolic LaTex output Thank you... -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails

[sage-support] Re: How to plot output of solve()?

2014-06-10 Thread P Purkayastha
I suppose you want to plot the complex numbers that are the roots. You can do the following: list_plot([CDF(s.rhs()) for s in solve([mu^6==1],mu)]) Once #16378 ( http://trac.sagemath.org/ticket/16378 ) is fixed, you will not need to coerce to CDF, and so the following will also work (as long

[sage-support] missing limits.h on OSX

2014-06-10 Thread john_perry_usm
I didn't find this answered clearly when searching other people's questions on this topic yesterday, but: I encountered this yesterday, and in my case (OSX Mavericks, Xcode 5.1.1) the problem is fixed by building from source, rather than using a binary. regards john perry -- You received

[sage-support] rationalizing fractions

2014-06-10 Thread john_perry_usm
Suppose I have 2/sqrt(5). Is there a straightforward way of rationalizing it? regards john perry -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sage-support] rationalizing fractions

2014-06-10 Thread Kannappan Sampath
Hi John, Could you please take a look at this askSage question: http://ask.sagemath.org/question/792/how-to-rationalize-the-denominator-of-a-fraction ? HTH, Kannappan. On Wed, Jun 11, 2014 at 3:40 AM, john_perry_usm john.pe...@usm.edu wrote: Suppose I have 2/sqrt(5). Is there a

[sage-support] Re: How to plot output of solve()?

2014-06-10 Thread David Ingerman
How did you get the .png picture? SageMath Cloud gives .svg files as output... On Tuesday, June 10, 2014 3:12:07 AM UTC-7, Андрей Ширшов wrote: Hello! mu = var('mu') L = [t.rhs() for t in solve([mu^6==1],mu)] Coords = [(real(t), imag(t)) for t in L] P = point(Coords, size=50)

Re: [sage-support] Re: How to plot output of solve()?

2014-06-10 Thread William Stein
Do P.save('a.png') On Jun 10, 2014 7:54 PM, David Ingerman daviddavif...@gmail.com wrote: How did you get the .png picture? SageMath Cloud gives .svg files as output... On Tuesday, June 10, 2014 3:12:07 AM UTC-7, Андрей Ширшов wrote: Hello! mu = var('mu') L = [t.rhs() for t in