Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Unexpected Error Message
Replies: 1   Last Post: Dec 6, 2012 12:04 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Mason Savage

Posts: 1
Registered: 12/6/12
Unexpected Error Message
Posted: Dec 6, 2012 11:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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:')

y=-5.6703*e-8x^4-2x+548.30 %orginal equation

while abs(y)>.0001
a=x+.0001 %find derv 1

b=x-.0001 %find derv 2

dydx=(ya-yb)/(a-b) %derv



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.