when i solve this equation (solve((x^3-x^2-20*x+43)==0,x)) using syms x i get a typical answer in form of rational and powers. How do i convert it into decimal points. Tried using vpa(x) but it shows ans x = x.
Attachments
-
243.2 KB Views: 9
Since your answer is a function (that is true for ALL values of x) rather than a single value. If you want one decimal value, you must mean one decimal value for a single value of x. Therefore, you need to find a way to enter the value of x that you are concerned with.when i solve this equation (solve((x^3-x^2-20*x+43)==0,x)) using syms x i get a typical answer in form of rational and powers. How do i convert it into decimal points. Tried using vpa(x) but it shows ans x = x.
by Jake Hertz
by Robert Keim
by Jake Hertz
by Duane Benson