Re: [sympy] delete sympify, just use S

2010-12-06 Thread Ondrej Certik
On Mon, Dec 6, 2010 at 3:37 PM, Aaron S. Meurer wrote: > I for one think we should keep sympify() (and the S() shortcut).  sympify() > gives a nice character to SymPy, as a function named after it.  I certainly > don't see why you would want to delete sympify() and just keep S().  How is > that

Re: [sympy] delete sympify, just use S

2010-12-06 Thread Aaron S. Meurer
I for one think we should keep sympify() (and the S() shortcut). sympify() gives a nice character to SymPy, as a function named after it. I certainly don't see why you would want to delete sympify() and just keep S(). How is that better than just keeping sympify() but always using S()? And b

Re: [sympy] delete sympify, just use S

2010-12-06 Thread Robert Kern
On Mon, Dec 6, 2010 at 17:27, Christophe BAL wrote: > Hello, > I think that S is usefull but "mystic" for new user. > > Instead of sympify, you could propose the name cvToSympy alias "convert to > sympy". It's longer but easier to understand. Contracting "convert" to "cv" is *not* easy to underst

Re: [sympy] delete sympify, just use S

2010-12-06 Thread Christophe BAL
Hello, I think that S is usefull but "mystic" for new user. Instead of sympify, you could propose the name cvToSympy alias "convert to sympy". It's longer but easier to understand. Best regards. Christophe -- You received this message because you are subscribed to the Google Groups "sympy" gro

[sympy] delete sympify, just use S

2010-12-06 Thread Ondrej Certik
On Mon, Dec 6, 2010 at 11:29 AM, smichr wrote: >> The similarity between "simpify" and "simplify" is misleading. > > Yes, that would be...but it's SYMpify not SIMpify. But yes, they are > close. I (as has been pointed out) almost exclusively use S() and so > it's not a problem. Would there be any

[sympy] Re: roots_binomial

2010-12-06 Thread smichr
I believe you just have (-1)**r = exp(r*I*pi). Are you thinking of the 3 possibilities for x**3 + 1 = 0? -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send e

[sympy] live.sympy and S()

2010-12-06 Thread smichr
When I tried to S() an expression I got an import error on the line "import parser"; does anyone else not get that? . . . /transformer.py", line 29, in import parser ImportError: No module named parser -- You received this message because you are subscribed to the Google Groups "sympy" gro

[sympy] Re: Regarding expression

2010-12-06 Thread smichr
> The similarity between "simpify" and "simplify" is misleading. Yes, that would be...but it's SYMpify not SIMpify. But yes, they are close. I (as has been pointed out) almost exclusively use S() and so it's not a problem. Would there be any reason not to delete sympify from the namespace and just

[sympy] Re: current master's tests failing

2010-12-06 Thread smichr
I'm away from my own computer right now, Vinzent, but from what you've shown above this looks like an issue in distributing the minus sign (what I refer to as the 2-arg mul: a constant distributes over a single Add). There is another matrix test, I believe, that had that problem and it was handled

Re: [sympy] Regarding usage of Plot

2010-12-06 Thread Aaron S. Meurer
This is a known problem. See http://code.google.com/p/sympy/issues/detail?id=1916. There is a workaround there that you might try. Unfortunately, not many of us use Windows, so fixing this issue has taken longer than it might (the issue only exists on Windows). Aaron Meurer On Dec 6, 2010,

Re: [sympy] Re: Regarding expression

2010-12-06 Thread Aaron S. Meurer
There's also the S() function, which is basically a shortcut to sympify(). Aaron Meurer On Dec 6, 2010, at 7:03 AM, Filip Dominec wrote: > This issue makes me to think about renaming the simpify function to > something more different from simplify. Possible candidates could be > parse_expressi

Re: [sympy] Regarding usage of Plot

2010-12-06 Thread prem kiran
i think this works only on linux because the first time i put Plot(x,y) the error is Window initialization failed: Unable to share contexts then again i use the above command then second error is Window initialization failed: exception: access violation reading 0x

[sympy] Re: Regarding expression

2010-12-06 Thread Filip Dominec
This issue makes me to think about renaming the simpify function to something more different from simplify. Possible candidates could be parse_expression, str2sympy, str2expr etc. The similarity between "simpify" and "simplify" is misleading. On 6 pro, 12:45, prem kiran wrote: > ya go it.THANKS

Re: [sympy] Regarding expression

2010-12-06 Thread prem kiran
ya go it.THANKS On Mon, Dec 6, 2010 at 4:56 PM, prem kiran wrote: > where can i find the module which has this function simpify. > > > On Mon, Dec 6, 2010 at 3:43 PM, Abderrahim Kitouni wrote: > >> Hello, >> في ن، 06-12-2010 عند 00:32 -0800 ، كتب premkiran: >> > Is there a

Re: [sympy] Regarding expression

2010-12-06 Thread prem kiran
where can i find the module which has this function simpify. On Mon, Dec 6, 2010 at 3:43 PM, Abderrahim Kitouni wrote: > Hello, > في ن، 06-12-2010 عند 00:32 -0800 ، كتب premkiran: > > Is there a way to convert string expression to Numeric expression so > > that that can be p

Re: [sympy] Regarding expression

2010-12-06 Thread Abderrahim Kitouni
Hello, في ن، 06-12-2010 عند 00:32 -0800 ، كتب premkiran: > Is there a way to convert string expression to Numeric expression so > that that can be put into simplify method.As otherwise ,the error is > if expr.is_Pow: > AttributeError: 'str' object has no attribute 'is_Po

[sympy] Re: Regarding expression

2010-12-06 Thread premkiran
THE ABOVE THING IS NOT WORKING IS SHOWING THE SAME ERROR PS:CHANGE "SIMPIFY" TO "SIMPLIFY" AND TRY On Dec 6, 1:40 pm, Ondrej Certik wrote: > Hi premkiran, > > On Mon, Dec 6, 2010 at 12:32 AM, premkiran wrote: > > Is there a way to convert string expression to Numeric expression so > > that that

Re: [sympy] Regarding usage of Plot

2010-12-06 Thread Ondrej Certik
Hi premkiran, On Mon, Dec 6, 2010 at 12:36 AM, premkiran wrote: > I have used Plot function to plot 2D functions.The problem is I am > unable to view the plotted function either as png file or as pdf > file .i have used the below mentioned attribute for it. >    g.saveimage(outfile="C:\users\prem

Re: [sympy] Regarding expression

2010-12-06 Thread Ondrej Certik
Hi premkiran, On Mon, Dec 6, 2010 at 12:32 AM, premkiran wrote: > Is there a way to convert string expression to Numeric expression so > that that can be put into simplify method.As otherwise ,the error is >     if expr.is_Pow: > AttributeError: 'str' object has no attribute 'is_Pow' Can you pos

[sympy] Regarding expression

2010-12-06 Thread premkiran
Is there a way to convert string expression to Numeric expression so that that can be put into simplify method.As otherwise ,the error is if expr.is_Pow: AttributeError: 'str' object has no attribute 'is_Pow' -- You received this message because you are subscribed to the Google Groups "symp

[sympy] Regarding usage of Plot

2010-12-06 Thread premkiran
I have used Plot function to plot 2D functions.The problem is I am unable to view the plotted function either as png file or as pdf file .i have used the below mentioned attribute for it. g.saveimage(outfile="C:\users\prem\desktop\kir", format='pdf', size=(600, 500)) but there is no file being