[sympy] How to add a legend to sympy.Plot

2009-11-24 Thread archeryguru2000
Hello all, I'm trying to get a legend to appear on my plots, when plotting multiple functions on the same graph. Does anyone have any insight into how I could add a legend to my plots? I'm assuming it would be something similar to: >>> sympy.legend() or >>> sympy.Plot('blah, blah, blah', legend=

[sympy] printing exponential format vs float numbers

2009-12-01 Thread archeryguru2000
I was wondering, is there a way to tell sympy NOT to use exponential format when printing numbers? For example: In [2]: N(pi/(2*E),4) Out[2]: 5.779e-1 #But I'd rather see 0.5779 If I choose a larger number, say 7, for the number of decimal places it produces a leading zero followed by 7 digits.

[sympy] Re: printing exponential format vs float numbers

2009-12-02 Thread archeryguru2000
this module tomorrow and see what I come up with. ~~archery~~ On Dec 2, 7:18 am, Vinzent Steinberg wrote: > On 1 déc, 16:45, archeryguru2000 wrote: > > > > > I was wondering, is there a way to tell sympy NOT to use exponential > > format when printing numbers? > > >

[sympy] Re: printing exponential format vs float numbers

2009-12-03 Thread archeryguru2000
les page, but I cannot locate an upload link. Any suggestions? ~~archery~~ On Dec 3, 10:55 am, Vinzent Steinberg wrote: > Sorry for double-posting, sent previous message by mistake. > > On 2 déc, 22:37, archeryguru2000 wrote: > > > Is there any way to convert a sympy Matrix (or

[sympy] Re: printing exponential format vs float numbers

2009-12-04 Thread archeryguru2000
ode.google.com/p/sympy/issues/list.  Create an issue and upload the > patch to it. > > Aaron Meurer > On Dec 3, 2009, at 1:06 PM, archeryguru2000 wrote: > > > Ok, I think I have it.  I have (hopefully) compiled a set of patches > > that implements what I've done.

[sympy] evaluating abs(x) --> x if x>0

2010-02-03 Thread archeryguru2000
Hello all, I have an issue with an integral I'm trying to evaluate. I have a matrix where each element is a function of (among other terms) an integrated Legendre polynomial. My opportunity is that certain returns are in the form of absolute values. For example, an output to one particular eleme

[sympy] Sum bug?

2010-03-04 Thread archeryguru2000
In running a program I've written, I added a summation as follows: >>> Sum((i-i%2)/2, (i, 1, 10)).doit() It's actually a liitle more involved than that, but either way below is the output to that command: --- TypeError