0
plotting a deff

deff('[y]=f(x)','y=2*sin(x)-((%e^x)/4-1)')

plot(-10:10,f)

f(-3)=-1.29 f(-5)=0.91

From the above plot I get 0 for x=-3 and x=-5, yet the value of f(-3) and f(-5) are not even close.

The above deff is from lecture 14, and I was just trying to plot this function on an interval to get an idea of where the zeroes were.

So how should the plot function be written?


Scilab 16-06-18, 5:29 p.m. maxcy

Answers:

0

this should have been

deff('[y]=f(x)','y=2*sin(x)-((%e^x)/4)-1') and f(-3)=-1.294 and f(-5)=0.916

but still you can see a problem between the graph and the function results

17-06-18, 8:40 a.m. maxcy


Log-in to answer to this question.