f(x)= x.^3 - 4.9*x.^2 +6.76*x-2.013
result= 'guess is valid'
result= 'guess is not valid'
I enter in x=[0,1] and I want my program to define xleft as 0 and xright as 1 and then multiply f(0) with f(1) and tell me whether the product is <0 or not. Why won't it do this?
Also, if I wanted to enter in a matrix like x=[0,1;1,3;5,0] Then I would do
f= x.^3 - 4.9*x.^2 +6.76*x-2.013
But this won't work either.