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: 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 ]
RICARDO

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?
Thanks



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.