Question: could Maple find a symbolic solution?

 I want to find all real roots of   equation x^2 + floor(x) - 10=0

restart: 
solve(x^2+floor(x)-10,x) assuming x::real 

maple tells me:

  RootOf(_Z^2 + floor(_Z) - 10)

allvalues(%) 

RootOf(_Z^2 + floor(_Z) - 10, 2.828427125 + 0.*I)

even though  usRealDomain.

use RealDomain in  solve(x^2+floor(x)-10,x) end use

We get nothing!

So I trun to use fsolve.

plot(x^2+floor(x)-10,x=-5..5)

                                  

s:=fsolve(x^2+floor(x)-10,{x});
fsolve(x^2+floor(x)-10,x,avoid={s})

                     s := {x = 2.828427125}

                          -3.741657387

 

I try to use mathematica, it is good:

Solve[x^2 + Floor[x] - 10 == 0, x, Reals]

Could Maple  do that?

 

 

 

 

 

 

Please Wait...