Thanks. I will try to see if I can get the current version to run on IronPython.
On Tuesday, June 26, 2018 at 12:53:53 AM UTC+1, Aaron Meurer wrote: > > 0.7.5 is an ancient version of SymPy. I'm not sure how well the latest > versions support IronPython, but in CPython, your code gives > 0.0025*gamma(1/4)*hyper((-1/2, 1/4), (5/4,), > 3.6e-7*exp_polar(I*pi))/gamma(5/4) using the latest version (1.1.1). > > Aaron Meurer > > > On Mon, Jun 25, 2018 at 3:23 PM, Groover <aja...@gmail.com <javascript:>> > wrote: > > I am unsure why the following piece of code doesn't work. I am using > sympy > > 0.7.5-git and IronPython 2.7. > > > > import sympy > > from sympy import * > > > > x = Symbol('x') > > > > formula = 2 * (x**3) > > x_minimum = 0.0 > > x_maximum = 0.01 > > > > d = diff(formula, x) > > print d > > i = integrate(sqrt(1 + (d**2)), (x, x_minimum, x_maximum)) > > > > Running this outputs: > > > > 6*x**2 > > Traceback (most recent call last): > > File "<string>", line 12, in <module> > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\utilities\decorator.py", > > > > line 35, in threaded_func > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\meijerint.py", > > > > line 1611, in _meijerint_indefinite_1 > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\basic.py", > > > line 1067, in fallback > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\function.py", > > > > line 368, in __new__ > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\function.py", > > > > line 198, in __new__ > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\functions\elementary\exponential.py", > > > > line 228, in eval > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\integrals.py", > > > > line 1288, in integrate > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\integrals.py", > > > > line 552, in doit > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\integrals.py", > > > > line 933, in _eval_integral > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\meijerint.py", > > > > line 1596, in meijerint_indefinite > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\meijerint.py", > > > > line 1548, in _rewrite1 > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\meijerint.py", > > > > line 1442, in _rewrite_single > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\basic.py", > > > line 976, in subs > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\basic.py", > > > line 1090, in _subs > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\basic.py", > > > line 1062, in fallback > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\basic.py", > > > line 1090, in _subs > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\function.py", > > > > line 368, in __new__ > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\cache.py", > > > line 93, in wrapper > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\core\function.py", > > > > line 198, in __new__ > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\integrals\meijerint.py", > > > > line 78, in eval > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\simplify\simplify.py", > > > > line 2221, in unpolarify > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\simplify\simplify.py", > > > > line 2177, in _unpolarify > > File > > > "C:\Users\Andy\Documents\Script\PythonLib\site-packages\sympy\simplify\simplify.py", > > > > line 2168, in _unpolarify > > TypeError: unsupported operand type(s) for __mul__: 'ImaginaryUnit' and > > 'Infinity' > > > > > > Changing the input formula to 2 * x**2 seems to work OK. > > > > Any ideas what I am doing wrong? Thanks! > > > > -- > > 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+un...@googlegroups.com <javascript:>. > > To post to this group, send email to sy...@googlegroups.com > <javascript:>. > > Visit this group at https://groups.google.com/group/sympy. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/sympy/610fa461-8d8b-41bd-9a3b-1dd2b0d147de%40googlegroups.com. > > > > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/b92e2e72-e72c-4aaa-b752-3347eb29088e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.