Question: roots

Question:roots

I apologize if I've asked this question before. There's probably a very simple solution. I'm trying to get all roots over a range of 0-5 for x^3-e^x. with(Student[Calculus1]): for i to nops(Roots(x^3-exp(x),x=0..5)) do evalf(Roots(x^3-exp(x),x=0..5)[i]) end do returns 1.857183860 and 4.536403655 as expected, but seems kinda weird. fsolve(x^3-exp(x)) returns only the first find: 1.857183860 fsolve(x^3-exp(x), x = 0 .. 5) returns only the last find: 4.536403655
Please Wait...