RE: [sympy] Real-valued root

2024-12-11 Thread peter.stahlecker
If I put it as (x^2)^(1/5) it works fine. From: sympy@googlegroups.com On Behalf Of Paul Royik Sent: Wednesday, December 11, 2024 8:15 PM To: sympy Subject: [sympy] Real-valued root I try to use the bridge between sympy and numpy, namely, the lambdify function. It looks ok, but there

Re: [sympy] Real-valued root

2024-12-11 Thread Paul Royik
What is x^(3/5)? On Wednesday, December 11, 2024 at 11:36:20 PM UTC+2 peter.st...@gmail.com wrote: > If I put it as (x^2)^(1/5) it works fine. > > > > *From:* sy...@googlegroups.com *On Behalf Of *Paul > Royik > *Sent:* Wednesday, December 11, 2024 8:15 PM > *To:* sympy > *Subject:* [sympy]

RE: [sympy] Real-valued root

2024-12-11 Thread peter.stahlecker
I do not know. What is x^(2/pi)? From: sympy@googlegroups.com On Behalf Of Paul Royik Sent: Wednesday, December 11, 2024 10:37 PM To: sympy Subject: Re: [sympy] Real-valued root What is x^(3/5)? On Wednesday, December 11, 2024 at 11:36:20 PM UTC+2 peter.st...@gmail.com

Re: [sympy] Real-valued root

2024-12-11 Thread Paul Royik
I mean what if x^(3/5) ? On Wednesday, December 11, 2024 at 11:45:15 PM UTC+2 peter.st...@gmail.com wrote: > I do not know. > > What is x^(2/pi)? > > > > *From:* sy...@googlegroups.com *On Behalf Of *Paul > Royik > *Sent:* Wednesday, December 11, 2024 10:37 PM > *To:* sympy > *Subject:* Re

RE: [sympy] Real-valued root

2024-12-11 Thread peter.stahlecker
I do not know. From: sympy@googlegroups.com On Behalf Of Paul Royik Sent: Wednesday, December 11, 2024 10:48 PM To: sympy Subject: Re: [sympy] Real-valued root I mean what if x^(3/5) ? On Wednesday, December 11, 2024 at 11:45:15 PM UTC+2 peter.st...@gmail.com

[sympy] Real-valued root

2024-12-11 Thread Paul Royik
I try to use the bridge between sympy and numpy, namely, the lambdify function. It looks ok, but there is an issue when I try to calculate the values of x^(2/5) on the interval [-5,5]. Of course, for negative x, the value is nan, because, I guess, the root is not real-valued. How to make it r

Re: [sympy] Real-valued root

2024-12-11 Thread Oscar Benjamin
On Wed, 11 Dec 2024 at 19:15, Paul Royik wrote: > > I try to use the bridge between sympy and numpy, namely, the lambdify > function. > > It looks ok, but there is an issue when I try to calculate the values of > x^(2/5) on the interval [-5,5]. > > Of course, for negative x, the value is nan, be

Re: [sympy] Real-valued root

2024-12-11 Thread Paul Royik
Thank you very much! On Thursday, December 12, 2024 at 12:21:44 AM UTC+2 Oscar wrote: > On Wed, 11 Dec 2024 at 19:15, Paul Royik wrote: > > > > I try to use the bridge between sympy and numpy, namely, the lambdify > function. > > > > It looks ok, but there is an issue when I try to calculate