zxo102 | 25 Nov 14:58 2014
Picon

a bug in Line3D intersection?

Hi there,

  In sympy0.7.6 and python3.4, I would like find a intersection point for two 3D lines but failed at the following 3D case.

  2D case:

>>> from sympy import Line, Point
>>> l1 = Line(Point(4,0),Point(0,4))
>>> l2 = Line(Point(0,0),Point(4,4))
>>> l1.intersection(l2)
[Point(2, 2)]

  3D case:  add z=1 into the above coordinates

>>> from sympy import Line3D, Point3D
>>> l3 = Line3D(Point3D(4,0,1),Point3D(0,4,1))
>>> l4 = Line3D(Point3D(0,0,1),Point3D(4,4,1))
>>> l3.intersection(l4)
[]

l3.intersection(l4) should return [Point3D(2,2,1)].

Is this a bug? or I did something wrong with it? Thanks for your help.

ouyang 

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/bfca0ee0-b7bf-49c8-a961-2fc47fc0c422%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yuxiang Wang | 25 Nov 02:26 2014
Picon

Solving a simple systems of equations with SymPy?

Hi all,

I have this equation, which is Vieta's formula and is polynomial. 

SymPy code: didn't work... just hang there

from sympy.abc import x, y, z, a, b, c from sympy import solve solve([x+y+z-a, x*y+y*z+x*z-b, x*y*z-c], [x, y, z])

Mathematica worked.

Solve[{x + y + z == a, x y + y z + x z == b, x y z == c}, {x, y, z}]

I do know the answer of this equation, but I was wondering... this seems to be a question that should work in sympy because it does not appear too difficult to me - only polynomials. Any thoughts?


Shawn

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/8e42eaf3-da4e-47ff-b98b-df46d1fcf2d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yuxiang Wang | 24 Nov 20:05 2014
Picon

Cannot do mpmath.sqrtm() in sympy

Dear all,

I have the following code to extract the square root of a symmetric second-order tensor.

from sympy import symbols, Matrix, mpmath import numpy as np F11, F12, F13, F21, F22, F23, F31, F32, F33 = symbols('F11, F12, F13, F21, F22, F23, F31, F32, F33', real=True) F = np.array([[F11, F12, F13], [F21, F22, F23], [F31, F32, F33]]) B = F.dot(F.T) mpmath.sqrtm(Matrix(B))

However, it gave me the error:

TypeError Traceback (most recent call last) <ipython-input-14-439fed475a57> in <module>() 5 F = np.array([[F11, F12, F13], [F21, F22, F23], [F31, F32, F33]]) 6 B = F.dot(F.T) ----> 7 mpmath.sqrtm(Matrix(B)) X:\WinPython3\python-3.4.2.amd64\lib\site-packages\sympy\mpmath\matrices\calculus.py in sqrtm(ctx, A, _may_rotate) 308 309 """ --> 310 A = ctx.matrix(A) 311 # Trivial 312 if A*0 == A: X:\WinPython3\python-3.4.2.amd64\lib\site-packages\sympy\mpmath\matrices\matrices.py in __init__(self, *args, **kwargs) 326 A[i,j] = convert(A[i,j]) 327 elif hasattr(args[0], 'tolist'): --> 328 A = self.ctx.matrix(args[0].tolist()) 329 self.__data = A._matrix__data 330 self.__rows = A._matrix__rows X:\WinPython3\python-3.4.2.amd64\lib\site-packages\sympy\mpmath\matrices\matrices.py in __init__(self, *args, **kwargs) 299 for i, row in enumerate(A): 300 for j, a in enumerate(row): --> 301 self[i, j] = convert(a) 302 else: 303 # interpret list as row vector X:\WinPython3\python-3.4.2.amd64\lib\site-packages\sympy\mpmath\ctx_mp_python.py in convert(ctx, x, strings) 660 if hasattr(x, '_mpmath_'): 661 return ctx.convert(x._mpmath_(prec, rounding)) --> 662 return ctx._convert_fallback(x, strings) 663 664 def isnan(ctx, x): X:\WinPython3\python-3.4.2.amd64\lib\site-packages\sympy\mpmath\ctx_mp.py in _convert_fallback(ctx, x, strings) 612 else: 613 raise ValueError("can only create mpf from zero-width interval") --> 614 raise TypeError("cannot create mpf from " + repr(x)) 615 616 def mpmathify(ctx, *args, **kwargs): TypeError: cannot create mpf from F11**2 + F12**2 + F13**2

May I ask why that is happening? Is this a limitation of sympy or that I am doing something wrong?

Thank you!

Shawn

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/228b5b46-c2fe-4d90-83f6-4dd96927eddd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Colin Macdonald | 24 Nov 00:32 2014
Picon
Picon

Windows, 0.7.6, fourier_transform error

Hi,

Can someone test this on Windows with 0.7.6?

````
x,k = symbols('x,k')
f = exp(-x*x)
fourier_transform(f,x,k)
````
(and report what Python you use).

Windows is (thankfully) not my main platform but I've been testing some
stuff.  I run py.exe (a single-exe-file stand-alone python 2.7.8) which
works great with SymPy 0.7.5.  But on SymPy 0.7.6, I get the following,
at least with the Fourier command above.  Some other commands in my test
set cause errors too, but haven't narrowed them down yet (due to
combination of an Octave bug and my inability to do much on Windows).

````
N:\win32\octave-3.8.2\share\octave\packages\octsympy-0.1.2\bin>py
Python 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from sympy import *
>>> x,k = symbols('x,k')
>>> f = exp(-x*x)
>>> fourier_transform(f,x,k)
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "sympy\integrals\transforms.py", line 1364, in fourier_transform
  File "sympy\integrals\transforms.py", line 118, in doit
  File "sympy\integrals\transforms.py", line 1307, in _compute_transform
  File "sympy\integrals\transforms.py", line 196, in wrapper
  File "sympy\integrals\transforms.py", line 1284, in _fourier_transform
  File "sympy\utilities\decorator.py", line 35, in threaded_func
  File "sympy\integrals\integrals.py", line 1232, in integrate
  File "sympy\integrals\integrals.py", line 467, in doit
  File "sympy\integrals\integrals.py", line 444, in try_meijerg
  File "sympy\integrals\meijerint.py", line 1746, in meijerint_definite
  File "sympy\integrals\meijerint.py", line 1855, in _meijerint_definite_2
  File "sympy\integrals\meijerint.py", line 1867, in _meijerint_definite_3
  File "sympy\integrals\meijerint.py", line 1932, in _meijerint_definite_4
  File "sympy\integrals\meijerint.py", line 898, in _rewrite_saxena
  File "sympy\integrals\meijerint.py", line 874, in pb
  File "sympy\functions\special\hyper.py", line 578, in get_period
  File "sympy\functions\special\hyper.py", line 575, in compute
  File "sympy\core\expr.py", line 2922, in simplify
  File "sympy\simplify\simplify.py", line 3671, in simplify
  File "sympy\vector\__init__.py", line 1, in <module>
  File "sympy\vector\vector.py", line 6, in <module>
  File "sympy\vector\basisdependent.py", line 9, in <module>
  File "sympy\vector\basisdependent.py", line 70, in BasisDependent
````

-- 
Colin Macdonald
Associate Professor
Tutorial Fellow at Oriel College
University of Oxford

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@...
To post to this group, send email to sympy@...
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/54726E92.5070003%40maths.ox.ac.uk.
For more options, visit https://groups.google.com/d/optout.
Attachment (0xC5326EE5.asc): application/pgp-keys, 2218 bytes
Junwei Huang | 23 Nov 22:13 2014
Picon

error in using solve_poly_system and solve_triangulated

Hi
I am quite new to sympy. I found sympy as I was searching a way to solve a system of 3 6-order polynomials for 3 unknowns. I tried to solve this system using either solve_poly_system or solve_triangulated but got the same error.  Here is the part of code:
"
eq1 = 0.
eq2 = 0.
eq3 = 0.
m=0
for k in range(0,7):
    for j in range(0,7-k):
        for i in range(0,7-k-j):
            if mod(i+j+k,2)==0:
                eq1 = eq1 + e1C[m]*p**i*q**j*r**k
                eq2 = eq2 + e2C[m]*p**i*q**j*r**k
                eq3 = eq3 + e3C[m]*p**i*q**j*r**k
                m=m+1

#rr = solve_poly_system([eq1, eq2, eq3], p, q, r)
rr= solve_triangulated([eq1, eq2, eq3], p, q, r)
"
e1C, e2C, and e3C are constant coefficients and eq1, eq2, and eq3 are the three polynomial equations. I got the following error:

--------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last
<ipython-input-12-9cbae56e6534> in <module>()
----> 1 rr = sympy.solve_triangulated([eq1, eq2, eq3], p, q, r)

/usr/local/lib/python2.7/dist-packages/sympy/solvers/polysys.pyc in solve_trngulated(polys, *gens, **args)                                             
    263
    264     """
--> 265     G = groebner(polys, gens, polys=True)
    266     G = list(reversed(G))
    267

/usr/local/lib/python2.7/dist-packages/sympy/polys/polytools.pyc in groebner, *gens, **args)                                                           
   6380
   6381     """
-> 6382     return GroebnerBasis(F, *gens, **args)
   6383
   6384

/usr/local/lib/python2.7/dist-packages/sympy/polys/polytools.pyc in __new__(s, F, *gens, **args)                                                       
   6420             polys[i] = ring.from_dict(poly.rep.to_dict())
   6421
-> 6422         G = _groebner(polys, ring, method=opt.method)
   6423         G = [Poly._from_dict(g, opt) for g in G]
   6424

/usr/local/lib/python2.7/dist-packages/sympy/polys/groebnertools.pyc in groeer(seq, ring, method)                                                      
     43             seq = [ s.set_ring(ring) for s in seq ]
     44
---> 45     G = _groebner(seq, ring)
     46
     47     if orig is not None:

/usr/local/lib/python2.7/dist-packages/sympy/polys/groebnertools.pyc in _buchberger(f, ring)
    236         # ordering divisors is on average more efficient [Cox] page 111
    237         G1 = sorted(G, key=lambda g: order(f[g].LM))
--> 238         ht = normal(h, G1)
    239
    240         if ht:

/usr/local/lib/python2.7/dist-packages/sympy/polys/groebnertools.pyc in normal(g, J)
    102
    103     def normal(g, J):
--> 104         h = g.rem([ f[j] for j in J ])
    105
    106         if not h:

/usr/local/lib/python2.7/dist-packages/sympy/polys/rings.pyc in rem(f, G)
   1419                         c1 = get(m1, zero) - c*cg
   1420                         if not c1:
-> 1421                             del f[m1]
   1422                         else:
   1423                             f[m1] = c1

KeyError: (0, 0, 7)
-------------------------------------------------------
eq1, eq2, and eq3 are like this:
In[13]: eq1.simplify()
Out[13]: 5105.00458755661*p**6 - 108.473959633689*p**5*q + 2402.41285238498*p**5*r + 9008.47267975219*p**4*q**2 - 1255.39607773283*p**4*q*r + 11277.0701891541*p**4*r**2 - 1307.26969182159*p**4 + 2011.04932840783*p**3*q**3 + 4868.72300813206*p**3*q**2*r + 2350.26623001839*p**3*q*r**2 + 83.2810004274752*p**3*q + 5306.9841358631*p**3*r**3 - 410.133684217865*p**3*r + 3581.05378966718*p**2*q**4 - 1494.32987338524*p**2*q**3*r + 9663.32292693404*p**2*q**2*r**2 - 1603.980521043*p**2*q**2 - 1554.39827080096*p**2*q*r**3 + 146.877127581136*p**2*q*r + 6189.03791479042*p**2*r**4 - 1951.0971844993*p**2*r**2 + 104.459609097912*p**2 + 2059.68147982275*p*q**5 + 2434.36150406603*p*q**4*r + 4573.37297182227*p*q**3*r**2 - 129.155224299263*p*q**3 + 5326.78736764999*p*q**2*r**3 - 414.231578475927*p*q**2*r + 2541.58989447865*p*q*r**4 - 163.881993246563*p*q*r**2 - 7.32935355549153*p*q + 2912.55844639838*p*r**5 - 459.09272674491*p*r**3 + 16.3862149483427*p*r - 267.46300018096*q**6 - 251.079215546565*q**5*r - 551.942706049301*q**4*r**2 - 383.602775058541*q**4 - 518.132756933654*q**3*r**3 + 48.9590425270454*q**3*r - 281.245218262232*q**2*r**4 - 921.212155372886*q**2*r**2 + 67.1547741681612*q**2 - 264.01718641355*q*r**5 + 51.0079896560767*q*r**3 - 2.33274553975296*q*r - 541.968982299977*r**4 + 79.5536696127415*r**2 - 2.47202741879275

In [14]: eq2.simplify()
Out[14]: -533.530507020419*p**6 + 4905.43084014754*p**5*q - 251.079215546566*p**5*r - 582.162658435345*p**4*q**2 + 2434.36150406603*p**4*q*r - 1101.00564042678*p**4*r**2 - 114.412696339151*p**4 + 8753.94762999568*p**3*q**3 - 1494.32987338524*p**3*q**2*r + 10767.2083390326*p**3*q*r**2 - 723.759577198517*p**3*q - 518.132756933655*p**3*r**3 + 48.9590425270454*p**3*r + 2518.77143858425*p**2*q**4 + 4868.72300813206*p**2*q**3*r + 2371.36169096872*p**2*q**2*r**2 - 570.416841704303*p**2*q**2 + 5326.78736764999*p**2*q*r**3 - 414.231578475927*p**2*q*r - 561.023034195364*p**2*r**4 - 380.66073794717*p**2*r**2 + 29.9539788526177*p**2 + 3767.68958665181*p*q**5 - 1255.39607773283*p*q**4*r + 9621.24207100615*p*q**3*r**2 - 610.744183471118*p*q**3 - 1554.39827080096*p*q**2*r**3 + 146.877127581136*p*q**2*r + 5907.79269652819*p*q*r**4 - 812.539281619356*p*q*r**2 + 22.3950435470699*p*q - 264.01718641355*p*r**5 + 51.0079896560767*p*r**3 - 2.33274553975296*p*r + 2559.17857546841*q**6 + 2402.41285238498*q**5*r + 5653.28315129873*q**4*r**2 - 655.344482123229*q**4 + 5306.9841358631*q**3*r**3 - 410.133684217865*q**3*r + 3102.61292867402*q**2*r**4 - 978.100220594949*q**2*r**2 + 52.3664159395267*q**2 + 2912.55844639838*q*r**5 - 459.09272674491*q*r**3 + 16.3862149483428*q*r - 271.69327358712*r**4 + 39.8808744205781*r**2 - 1.23924660588265

In [15]: eq3.simplify()
Out[15]: 5638.53509457703*p**5*r + 624.630294795803*p**4*q*r + 2653.49206793155*p**4*r**2 - 205.066842108932*p**4 + 10215.2656329833*p**3*q**2*r - 1036.26551386731*p**3*q*r**2 + 97.9180850540909*p**3*q + 12378.0758295808*p**3*r**3 - 975.548592249651*p**3*r + 3472.3673313955*p**2*q**3*r + 5326.78736764999*p**2*q**2*r**2 - 414.231578475927*p**2*q**2 + 3961.13372056658*p**2*q*r**3 - 272.271365596867*p**2*q*r + 5825.11689279675*p**2*r**4 - 918.18545348982*p**2*r**2 + 32.7724298966855*p**2 + 4534.64968247843*p*q**4*r - 1036.26551386731*p*q**3*r**2 + 97.9180850540908*p*q**3 + 11253.0949565319*p*q**2*r**3 - 866.875718496121*p*q**2*r - 1056.0687456542*p*q*r**4 + 204.031958624307*p*q*r**2 - 9.33098215901183*p*q + 6750.06094898578*p*r**5 - 1083.93796459995*p*r**3 + 39.7768348063708*p*r + 2826.64157564937*q**5*r + 2653.49206793155*q**4*r**2 - 205.066842108932*q**4 + 6205.22585734804*q**3*r**3 - 489.050110297474*q**3*r + 5825.11689279675*q**2*r**4 - 918.18545348982*q**2*r**2 + 32.7724298966855*q**2 + 3383.85814693625*q*r**5 - 543.386547174239*q*r**3 + 19.9404372102891*q*r + 3176.57563281193*r**6 - 765.15107460148*r**4 + 56.1568814642871*r**2 - 1.16333498638407

Could anyone please suggest what is causing this error? Is there any other way of solving this system of polynomial equations in Python? Thanks very much.

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/f2516e57-6bf9-4d41-b82a-8b788c6024a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sergey Kirpichev | 23 Nov 03:43 2014
Picon

Re: Issue #7335: FiniteSet not accepting iterables

On Sunday, November 23, 2014 5:21:42 AM UTC+3, Amit Saha wrote:

Hi,

I only am realizing that I cannot do FiniteSet[1, 2, 3, 4]) any more.
I did find it very useful to create a set from the elements of a set.
Anyway, it's probably way late for that.
So, what is the recommended way now to create a FiniteSet from an
existing list or any other iterable?

FiniteSet(*[1,2,3,4]) or FiniteSet(*set([1,2,3]))

PS: The release note for 0.7.6 does not contain an entry for this change.

Indeed.  Fixed.

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/5b20cfb2-eeec-4a02-960b-6e68bac6953d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Amit Saha | 23 Nov 03:36 2014
Picon

Re: Issue #7335: FiniteSet not accepting iterables

On Sun, Nov 23, 2014 at 12:20 PM, Amit Saha <amitsaha.in@...> wrote:
> Hi,
>
> I only am realizing that I cannot do FiniteSet[1, 2, 3, 4]) any more.
> I did find it very useful to create a set from the elements of a set.

set => list

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@...
To post to this group, send email to sympy@...
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3%3DVOY%3DzOW_QrcD5Ae3c0%2B3ivnMbYsS-r6f0_r19k7p-0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Amit Saha | 23 Nov 03:20 2014
Picon

Issue #7335: FiniteSet not accepting iterables

Hi,

I only am realizing that I cannot do FiniteSet[1, 2, 3, 4]) any more.
I did find it very useful to create a set from the elements of a set.
Anyway, it's probably way late for that.

So, what is the recommended way now to create a FiniteSet from an
existing list or any other iterable?

Use case: the elements of the set are calculated at run time and are
not known apriori.

PS: The release note for 0.7.6 does not contain an entry for this change.

Thanks,
Amit.

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@...
To post to this group, send email to sympy@...
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CANODV3niwaq__az2ai8g9a%2Bw4oq879JVXHKx7wHGN87N4RvH%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Aaron Meurer | 22 Nov 21:20 2014
Picon

Python 2.6 support

While we're talking about changes for 1.0, how do people feel about
dropping Python 2.6 support. I think we decided that we need to keep
Python 3.2 support for the time being because of Debian, but what
about 2.6? According to
https://www.python.org/download/releases/2.6.7/, the Python 2.6 series
hasn't been supported for security releases for over a year. But what
matters is if people are using it. If there's a good case to keep it
for the time being, we can.

Some advantages of dropping support is that there is a lot of nice
syntax backported from Python 3 in Python 2.7 which is unavailable in
Python 2.6. Some useful things in Python 2.7:

- Set literals (like {1, 2, 3} instead of set([1, 2, 3]))
- Set and dictionary comprehensions(like {a for a in stuff} or {a: b
for a, b in stuff})
- OrderedDict in the standard library
- Multiple context managers in a single with statement (I don't know
if we ever do this, but we have a lot of experimental context managers
like assuming() and evaluate() and this makes it easier to combine
them).
- argparse (we can use it instead of optparse in our scripts like isympy)
- collections.Counter (could be useful, it's effectively a multiset)

But again, the main question is if people are using it.

Aaron Meurer

--

-- 
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe@...
To post to this group, send email to sympy@...
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6JiGF6yb53TMRrMJVyf5Jptr4yFJ5M57nbryw0e3VHnKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

cool-RR | 22 Nov 20:40 2014
Picon

ANN: First release of combi, a combinatorics package for Python

Hi everyone,

Just a quick announcement: Last week I made the first release of an open-source package called Combi. It's a package for doing combinatorics in Python.

Combi lets you explore spaces of permutations and combinations as if they were Python sequences, but without generating all the permutations/combinations in advance. It lets you specify a lot of special conditions on these spaces. It also provides a few more classes that might be useful in combinatorics programming.

Information about it: 

https://pypi.python.org/pypi/combi

I hope this package will be useful to people here.


Thanks,
Ram.

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/b085a267-8379-4d52-91c4-288f7780eb04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Lee Philip | 22 Nov 12:04 2014

sympy acceptable expression :'x sin(1/x)+abs(x)' or 'x sin(1/x)+|x|' or 'x Sin[1/x] + Abs[x]'?

is 'x sin(1/x)+abs(x)' or 'x sin(1/x)+|x|' or 'x Sin[1/x] + Abs[x]' sympy acceptable?

I got  exceptions by  these expressions ,wonder is this a bug or not ?

 

test code here

http://codepad.org/NyO5tj1I

--
You received this message because you are subscribed to the Google Groups "sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to sympy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/988b0ad3-bb8d-4ba6-9509-ad395f4353d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmane