Re: [sympy] Unable to Calculate Length of Curve?

2018-06-26 Thread Groover
ode 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 > > wrote: > > I am unsure why the following piece of code doesn'

[sympy] Unable to Calculate Length of Curve?

2018-06-25 Thread Groover
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,

[sympy] What am I Doing Wrong?

2014-12-23 Thread Groover
Hello, I am clearly making a stupid mistake, but what? Arc length calculation: x = Symbol('x') formula = 2 * x**2 d = diff(formula, x) i = integrate(sqrt(1 + d**2), (x, 5.0, 10.0)) gives a result of 150.087 but changing the formula to this: formula = 0.2 * x**2 gives a result of

Re: [sympy] Unicode Output

2014-04-13 Thread Groover
to DejaVu Sans Mono? Aaron Meurer On Sat, Apr 12, 2014 at 4:26 PM, Joachim Durchholz j...@durchholz.orgjavascript: wrote: Am 12.04.2014 22:56, schrieb Groover: Now tried Deja Vu Sans Mono - same result. :( Have you tried finding out what the output is at the binary

Re: [sympy] Unicode Output

2014-04-12 Thread Groover
the integral extension character). Try using DejaVu Sans Mono, which is known to have all the required characters. Aaron Meurer On Wed, Apr 9, 2014 at 8:03 AM, Joachim Durchholz j...@durchholz.orgjavascript: wrote: Am 09.04.2014 14:32, schrieb Groover: Any hints or things

Re: [sympy] Unicode Output

2014-04-12 Thread Groover
Now tried Deja Vu Sans Mono - same result. :( Andy On Saturday, April 12, 2014 9:43:27 PM UTC+1, Groover wrote: I switched to the Windows System font which does have the character. But the output is identical. Andy On Thursday, April 10, 2014 11:33:30 PM UTC+1, Aaron Meurer wrote

Re: [sympy] zip() argument after * must be a sequence

2014-04-10 Thread Groover
: wrote: On Wed, Apr 9, 2014 at 3:43 AM, Groover aja...@gmail.com javascript: wrote: I now have sympy git-master working with IronPython 2.7.5b1 and this problem no longer occurs. I get the same result as Matthew. Nice! Ondrej -- You received this message because you are subscribed

Re: [sympy] zip() argument after * must be a sequence

2014-04-10 Thread Groover
OK, it's confirmed, the only issue on the SymPy side is supporting unicode_escape_decode when it has no parameters. Thanks, Andy On Thursday, April 10, 2014 8:41:57 AM UTC+1, Groover wrote: The fix is trivial. Firstly there is an import bug in IronPython that I guess they are going to fix

Re: [sympy] SymPy and IronPython

2014-04-09 Thread Groover
https://mail.python.org/pipermail/ironpython-users/2014-April/016918.html Still not quite solved, but almost there. I can at least perform some calculus after using the workarounds. On Sunday, April 6, 2014 9:18:03 PM UTC+1, Groover wrote: sys.path ['.', 'C:\\Users\\Andy\\Documents

[sympy] Unicode Output

2014-04-09 Thread Groover
Hi, I am making progress with SymPy (git-master) and IronPython 2.7.5b1. Now I would like to get Unicode output working. Here is my script: import sympy from sympy import * # output chinese character val = u'\u76d8' print val print # output integral x = Symbol('x') pprint(Integral(sqrt(1/x),

[sympy] SymPy and IronPython

2014-04-06 Thread Groover
OK, I really would like to get this working with the current release of IronPython (2.7.4). Any suggestions are appreciated. Using git master: import sympy unicode_escape_decode() takes no arguments (1 given) I defined a replacement function for the codecs module: import codecs def

Re: [sympy] SymPy and IronPython

2014-04-06 Thread Groover
no tracebacks for the errors? Aaron Meurer On Apr 6, 2014, at 8:09 AM, Groover aja...@gmail.com javascript: wrote: OK, I really would like to get this working with the current release of IronPython (2.7.4). Any suggestions are appreciated. Using git master: import sympy

Re: [sympy] SymPy and IronPython

2014-04-06 Thread Groover
sys.path ['.', 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\Lib', 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\DLLs', 'C:\\Users\\Andy\\Documents\\ADScript\\bin\\Debug\\PythonLib', '../../PythonLib'] On Sunday, April 6, 2014 9:15:31 PM UTC+1, Groover wrote: Sorry, here

[sympy] zip() argument after * must be a sequence

2014-04-05 Thread Groover
Hello, It's been 20 years since I did any calculus, so please be gentle. :) Using SymPy 0.7.2 and IronPython 2.7.4. import sympy from sympy import * # calculate arc length x = symbol('x') d = diff(2 * pow(x, 2), x) print d length = integrate(sqrt(1 + pow(d, 2)), (x, 5, 10)) print length This

Re: [sympy] zip() argument after * must be a sequence

2014-04-05 Thread Groover
)) In [6]: length Out[6]: -5*sqrt(401)/2 - asinh(20)/8 + asinh(40)/8 + 5*sqrt(1601) On Sat, Apr 5, 2014 at 4:00 AM, Groover aja...@gmail.com javascript:wrote: Hello, It's been 20 years since I did any calculus, so please be gentle. :) Using SymPy 0.7.2 and IronPython 2.7.4. import

Re: [sympy] zip() argument after * must be a sequence

2014-04-05 Thread Groover
I thought that x**y and the built-in pow(x, y) were the same? Can you please clarify for me how my python integrand is different, as I am a bit unsure. Thanks. Andy On Saturday, April 5, 2014 4:40:35 PM UTC+1, Matthew wrote: Also, feel free to use x**2 rather than pow(x, 2) . Your integrand

Re: [sympy] zip() argument after * must be a sequence

2014-04-05 Thread Groover
Thanks for explaining the integrand mistake. It is correct in the SymPy code and incorrect in the calculator. I guess I am stuck between a rock and a hard place. The primary purpose of my (free) application is to interface with a CAD package. The 3rd party interface uses .NET, so I naturally

Re: [sympy] zip() argument after * must be a sequence

2014-04-05 Thread Groover
Latest stable release was seven months ago. Latest commit to github was two days ago. Andy On Saturday, April 5, 2014 8:05:35 PM UTC+1, Aaron Meurer wrote: I haven't heard much from people using IronPython. I had assumed that the project was somewhat dead. I'd be happy to work around bugs.

Re: [sympy] zip() argument after * must be a sequence

2014-04-05 Thread Groover
. Alternatively (and perhaps better in general) is to alert the apparently active IronPython group about these issues. On Apr 5, 2014 12:15 PM, Groover aja...@gmail.com javascript: wrote: Latest stable release was seven months ago. Latest commit to github was two days ago. Andy On Saturday