The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: error with function and pi value
Replies: 3   Last Post: Dec 6, 2012 10:05 AM

Advanced Search

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

Posts: 5
Registered: 12/6/12
error with function and pi value
Posted: Dec 5, 2012 11:54 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello forum I want to evaluate in x=1 and t=0 in this function:

y= sin(pi*x).*exp(-pi^2*t) + sin(2*pi*x).*exp(-4*pi^2*t);

I expect to obtain 0 but instead I get

y = -1.2246e-16

How can I solve this?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.