Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Unexpected Error Message
Posted:
Dec 6, 2012 11:50 AM


Does anyone know why I keep on getting an unexpected Matlab error in this program. It says it occurs in line for (%the original equation) and I think it has something to do with a coefficient to x? I don't know, I have ran this program before with a different equation and it works. ANy help would be greatly appreciated and suggestions on the fix...
x=input('Type the number 32 for your intial guess:') x=((x32)*5/9)+273.15
y=5.6703*e8x^42x+548.30 %orginal equation
while abs(y)>.0001 a=x+.0001 %find derv 1 ya=5.6703*e8a^42a+548.30
b=x.0001 %find derv 2 yb=5.6703*e8b^42b+548.30
dydx=(yayb)/(ab) %derv
z=dydx*aya
x=z/dydx y=5.6703*e8x^42x+548.30 end



