# Question:Do I really get all values from this RootOf expression

## Question:Do I really get all values from this RootOf expression

Maple

I was about to verify two solutions of dsolve from here but could not find an agreement for negative values. This makes me wonder if all values are computed.

There is also a different behaviour that I do not understand when allvalues is given a RootOf expression or an equation containing a RootOf expression.

dsolve without method

 > ode:=diff(y(x), x) = (3*x - y(x) + 1)/(3*y(x) - x + 5); ic:=y(0)=0; dsolve({ode,ic}); plot(rhs(%),x=-10..10,numpoints=10); evalf(subs(x=3,%%)); evalf(subs(x=-3,%%%));
 (1)

dsolve with a particular method

 > sol:=dsolve([ode,ic],[dAlembert]); odetest(sol,[ode,ic]);
 (2)

Since allvalues fails on this expression for real valued x, rational and integer values are tried for punctual comaprision

 > subs(x=3,sol); allvalues(%); evalf(%)
 (3)

Two roots match the dsolve solution without method. However doing the same only on the right hand side produces different output. For some reason allvalues produces 3 RootOf expressions with a numerical root selector.

 > subs(x=3,rhs(sol)); allvalues(%); evalf(%)
 (4)

Why this change?
Now the same with a negative value. Now the root does not match the solution of the dsolve call without method.

 > subs(x=-3,sol); allvalues(%); evalf(%)
 (5)
 > subs(x = -3, rhs(sol)); allvalues(%); evalf(%);
 (6)
 >