Problem with solve( sin(22.)=14/c)

Messages in english

Modérateur : xcasadmin

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

Problem with solve( sin(22.)=14/c)

Message par compsystems » dim. oct. 07, 2018 5:25 pm

angle_radian:=0:; solve( sin(22)=14/c, c, '=' ) [enter]
=>
"Done", set[c=37.3725402758] // ok

angle_radian:=0:; solve( sin(22.)=14/c) [enter]
The xcas application ends.

solve( sin(t)=sin(2*t) )
when the variable is not specified, I think it should be used lname cmd
solve( sin(t)=sin(2*t),lname( sin(t)=sin(2*t)) )

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

Re: Problem with solve( sin(22.)=14/c)

Message par parisse » lun. oct. 08, 2018 9:15 am

No crash here.
solve solves with respect to x if the variable is not specified. That will not change.

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

Re: Problem with solve( sin(22.)=14/c)

Message par compsystems » lun. oct. 08, 2018 3:02 pm

in the hpprime

solve( sin(t)=sin(2*t) ) returns [] // it can generate confusion, there are no solutions
solve( θ=10*sin(θ)) returns x
in xcas returns list[-8.42320393236,-7.0681743581,-2.85234189445,-2.02979667349e-26,2.85234189445,7.0681743581,8.42320393236]
fsolve( θ=10*sin(θ), θ, [5,7.5], bisection_solver) => [7.06817433238,7.06817440689]

other CAS, look for the variable because not always the variable x is the unknown variable. I think it should be asked about "lname" the variables of the expression and if it finds a single one, solve with respect to that variable, if it finds more than one, return a message that var should be specify.

Répondre