Question: remove "fsolve" residual !

i have a function,when using fsolve to solve it, it has two roots. when i substitute it into the main function, it has some residual and it is not exactly 0. how should i remove the residual ? i do not want to use "solve" command and i should use "fsolve" command. tnx in advance


 

restart:

f:=3*(2*x-1)^2*(1/2)-1/2;

(3/2)*(2*x-1)^2-1/2

(1)

ans:=fsolve(f)

.2113248654, .7886751346

(2)

eval(f,x=ans[2])

-0.4e-9

(3)

 

 

 

``


 

Download problem.mw

Please Wait...