Problem with roots cmd

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 562
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

Problem with roots cmd

Message par compsystems » sam. sept. 22, 2018 1:58 pm

Hi, sometimes when x is assumed as an integer, xcas is restarted.

Test example

assume(x, integer);
roots(x^3 - 13/5*i*x^2 - 8*x^2 + 29/5*i*x + 81/5*x + 6*i - 18/5,x); => [[3,1]]

purge(x);
roots(x^3 - 13/5*i*x^2 - 8*x^2 + 29/5*i*x + 81/5*x + 6*i - 18/5,x); => [[3,1],[5+3*i,1],[(-2*i)/5,1]]

Another case

roots(a*x^2 + b*x + c)

f(x) := 5*x - 3; solve(f(y)=0)
Dernière modification par compsystems le sam. sept. 22, 2018 3:21 pm, modifié 1 fois.

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: Problem with roots cmd

Message par parisse » sam. sept. 22, 2018 3:12 pm

Everything works fine here, what do you mean by xcas is restarted?

Répondre