Laël Cellier on Sun, 19 Jan 2025 20:05:16 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Is it possible to have several solutions in this way to this equation using Pari/ɢᴘ ?


first,
beta=-(V\W);
alpha=W*(V+W*beta);

is just 1 way to find a suitable solution alpha == w (v + w beta). I’m needing to find other ways in order to get different results.

Let’s give a numerical example :
V=25 c=60 W=3 b=85 f=-1
give :
alpha=3
beta=-8
nfr=[-4, -1/9]~

of course with such small values, there’s no possible different end result than [-4, -1/9], but the real numbers are around 300 digits long.

Le 19/01/2025 à 17:12, Bill Allombert a écrit :
On Sun, Jan 19, 2025 at 04:13:10PM +0100, Laël Cellier wrote:
Sorry, the real script is :

beta=-(V\W);
alpha=W*(V+W*beta);
xx=alpha^2*x^2+(2*alpha*beta-abs(b))*x+(beta^2-c);
nfr=nfroots(,xx);

as f is used as an abs( function by being set to either 1 or −1
Give a numerical example ?

beta=-(V\W) implies alpha = 0, which implies that xx has a single solution.

Cheers,
Bill.