Aaron Meurer | 1 Dec 17:07 2010
Picon

Re: current master's tests failing

I have a bash alias that runs every combination of Python
version/platform/polys ground type that I have installed on my
computer, and I did not see that error anywhere.  I did see that an
unimproved all() snuck in to
/users/aaronmeurer/documents/python/sympy/sympy/sympy/polys/tests/test_polyroots.py,
line 86 via commit 49a0a06d.

But aside from that and the failures of issue 2041 and issue 1946 (or
is this the same thing as your problem?), I didn't have any other
problems.  Perhaps it's the new Python 2.7.1.  I haven't upgraded to
that yet, though I am in the process (Fink is compiling it right now,
I will try it again when that is done).  Or maybe you just need to run
./setup.py clean and/or git clean.

Aaron Meurer

On Tue, Nov 30, 2010 at 11:57 AM, Ronan Lamy <ronan.lamy@...> wrote:
> Le mardi 30 novembre 2010 à 09:34 -0800, Vinzent Steinberg a écrit :
>> Does anyone get this too when running bin/test on current master?
>
> I don't, so it's probably a hash-dependent bug again. What's the full
> traceback? Which test fails? Can you identify which commit introduced
> the failure?
>
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To post to this group, send email to sympy@...
> To unsubscribe from this group, send email to sympy+unsubscribe <at> googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
>
(Continue reading)

Ondrej Certik | 1 Dec 20:56 2010
Picon

Re: current master's tests failing

On Wed, Dec 1, 2010 at 8:07 AM, Aaron Meurer <asmeurer@...> wrote:
> I have a bash alias that runs every combination of Python
> version/platform/polys ground type that I have installed on my
> computer, and I did not see that error anywhere.  I did see that an
> unimproved all() snuck in to
> /users/aaronmeurer/documents/python/sympy/sympy/sympy/polys/tests/test_polyroots.py,
> line 86 via commit 49a0a06d.
>
> But aside from that and the failures of issue 2041 and issue 1946 (or
> is this the same thing as your problem?), I didn't have any other
> problems.  Perhaps it's the new Python 2.7.1.  I haven't upgraded to
> that yet, though I am in the process (Fink is compiling it right now,
> I will try it again when that is done).  Or maybe you just need to run
> ./setup.py clean and/or git clean.

I have also run it on my computer and didn't observe any errors. So
maybe there are some problems with 2.7.1.

Ondrej

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sympy@...
To unsubscribe from this group, send email to sympy+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

Aaron S. Meurer | 2 Dec 00:09 2010
Picon

Re: current master's tests failing

Actually, it works fine for me in Python 2.7.1 too.  More information on your failure would really be helpful.

Aaron Meurer

On Dec 1, 2010, at 12:56 PM, Ondrej Certik wrote:

> On Wed, Dec 1, 2010 at 8:07 AM, Aaron Meurer <asmeurer@...> wrote:
>> I have a bash alias that runs every combination of Python
>> version/platform/polys ground type that I have installed on my
>> computer, and I did not see that error anywhere.  I did see that an
>> unimproved all() snuck in to
>> /users/aaronmeurer/documents/python/sympy/sympy/sympy/polys/tests/test_polyroots.py,
>> line 86 via commit 49a0a06d.
>> 
>> But aside from that and the failures of issue 2041 and issue 1946 (or
>> is this the same thing as your problem?), I didn't have any other
>> problems.  Perhaps it's the new Python 2.7.1.  I haven't upgraded to
>> that yet, though I am in the process (Fink is compiling it right now,
>> I will try it again when that is done).  Or maybe you just need to run
>> ./setup.py clean and/or git clean.
> 
> I have also run it on my computer and didn't observe any errors. So
> maybe there are some problems with 2.7.1.
> 
> Ondrej
> 
> -- 
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To post to this group, send email to sympy@...
> To unsubscribe from this group, send email to sympy+unsubscribe@...
(Continue reading)

Vinzent Steinberg | 2 Dec 17:15 2010

Re: current master's tests failing

Well, either upgrading to Python 2.7.1 or running ./setup.py clean did
help (However, I used py.cleanup before reporting any of this. And I
was able reproduce it with a clean clone.). Now I get a much nicer
failure:

executable:   /usr/bin/python2  (2.7.1-final-0)

sympy/solvers/tests/
test_solvers.py[18] ..............F...                [FAIL]

________________________________________________________________________________
______________ sympy/solvers/tests/test_solvers.py:test_tsolve_1
_______________
  File "/home/one/src/sympy/sympy/solvers/tests/test_solvers.py", line
232, in test_tsolve_1
    [-((4*log(7) +
5*LambertW(-7*2**Rational(4,5)*6**Rational(1,5)*log(7)/10))/
(3*log(7)))]]
AssertionError

============= tests finished: 17 passed, 1 failed, in 2.82 seconds
=============
DO *NOT* COMMIT!

In isympy:

In [1]: solve(2*(3*x+4)**5 - 6*7**(3*x+9), x)
Out[1]:
⎡ ⎛                     ⎛   5 ⎽⎽⎽       ⎞⎞⎤
⎢ ⎜                     ⎜-7⋅╲╱ 3 ⋅log(7)⎟⎟⎥
(Continue reading)

Vinzent Steinberg | 2 Dec 17:33 2010

Re: current master's tests failing

This seems to be a rather serious bug, the ordering returned by
tsolve() is not reproducible, you always get the Lambert term before
the log. This makes comparison impossible.

Anyway, I sent a patch at least fixing the test.

Vinzent

On 2 Dez., 17:15, Vinzent Steinberg <vinzent.steinb... <at> googlemail.com>
wrote:
> Well, either upgrading to Python 2.7.1 or running ./setup.py clean did
> help (However, I used py.cleanup before reporting any of this. And I
> was able reproduce it with a clean clone.). Now I get a much nicer
> failure:
>
> executable:   /usr/bin/python2  (2.7.1-final-0)
>
> sympy/solvers/tests/
> test_solvers.py[18] ..............F...                [FAIL]
>
> ___________________________________________________________________________ _____
> ______________ sympy/solvers/tests/test_solvers.py:test_tsolve_1
> _______________
>   File "/home/one/src/sympy/sympy/solvers/tests/test_solvers.py", line
> 232, in test_tsolve_1
>     [-((4*log(7) +
> 5*LambertW(-7*2**Rational(4,5)*6**Rational(1,5)*log(7)/10))/
> (3*log(7)))]]
> AssertionError
>
(Continue reading)

Vinzent Steinberg | 5 Dec 19:27 2010

Re: roots_binomial

On 29 Nov., 23:42, smichr <smi...@...> wrote:
> In the calculation of roots_binomial a value of zeta is being
> calculated using Euler's formulation and expanded(complex=True). Is
> there a reason to do the expanding and is there a reason not to use
> the more compact "roots of -1" formulation?
>
> Also, after computing the root an expand(power_base=False) is done
>
> If the (-1) formulation and no expanding is done, a much more compact
> (and faster) result is attained. Is that expanding necessary?
>
> compare
>
>     h[2] >>> solve((x-1)**3 - 3)
>     [1 - (-3)**(1/3), 1 + I*(-3)**(1/3)*3**(1/2)/2 + (-3)**(1/3)/2,
>      1 - I*(-3)**(1/3)*3**(1/2)/2 + (-3)**(1/3)/2]
>
> to the unexpanded Euler representation:
>
>     [1 + 3**(1/3), 1 + 3**(1/3)*exp(2*pi*I/3), 1 + 3**(1/3)*exp(4*pi*I/
> 3)]
>
> or the "roots of -1" representation
>
>     [1 + 3**(1/3), 1 + (-1)**(2/3)*3**(1/3), 1 - (-3)**(1/3)]

I really like the "roots of -1" representation, because it is so
compact. Anyonre can expand it if he wants.

But, aren't there multiple possibilities for a complex root of -1?
(Continue reading)

premkiran | 6 Dec 09:36 2010
Picon

Regarding usage of Plot

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 created on desktop with that name.Also I
tried changing the format to doc ,create a work file and see whether
the plotting is being pasted in theis word file but in vain.plese
suggest where i can see the plot.
THANK YOU

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sympy@...
To unsubscribe from this group, send email to sympy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

premkiran | 6 Dec 09:32 2010
Picon

Regarding expression

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 "sympy" group.
To post to this group, send email to sympy@...
To unsubscribe from this group, send email to sympy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

Ondrej Certik | 6 Dec 09:40 2010
Picon

Re: Regarding expression

Hi premkiran,

On Mon, Dec 6, 2010 at 12:32 AM, premkiran <premiitm123@...> 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 post the whole session?

Normally, you would do:

In [1]: a = sympify("2/3")

In [2]: a
Out[2]: 2/3

Ondrej

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sympy@...
To unsubscribe from this group, send email to sympy+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sympy?hl=en.

Ondrej Certik | 6 Dec 09:43 2010
Picon

Re: Regarding usage of Plot

Hi premkiran,

On Mon, Dec 6, 2010 at 12:36 AM, premkiran <premiitm123@...> 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\desktop\kir", format='pdf',
> size=(600, 500))
> but there is no file being created on desktop with that name.Also I
> tried changing the format to doc ,create a work file and see whether
> the plotting is being pasted in theis word file but in vain.plese
> suggest where i can see the plot.
> THANK YOU

I just did on linux:

In [3]: g = Plot(x**2)

In [4]: g.saveimage(outfile="a.png", format="pdf", size=(600, 500))

and the a.png appeared in the current directory, see the attachment.
Does it print any errors? Maybe it doesn't work on windows. Or maybe
try to use "a.png" extension, there might be some bug in the format
parameter.

Ondrej

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To post to this group, send email to sympy@...
(Continue reading)


Gmane