Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Answer for Simplify[Cos[x]^4-Sin[x]^4]?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Bill Rowe  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 06:41
Newsgroups: comp.soft-sys.math.mathematica
From: Bill Rowe <readn...@sbcglobal.net>
Date: Wed, 4 Nov 2009 06:41:05 +0000 (UTC)
Local: Wed 4 Nov 2009 06:41
Subject: Re: Answer for Simplify[Cos[x]^4-Sin[x]^4]?
On 11/3/09 at 2:51 AM, lawrence...@yahoo.com (Lawrence Teo) wrote:

>Thanks for the insight. So Simplify[] in Mathematica is right. But
>why I observe small delta if I subtract the two expressions with //
>N? Is it because of machine precision related limitation?
>a = Cos[x]^2 - Sin[x]^2
>b = Cos[x]^4 - Sin[x]^4
>Table[a - b, {x, -10, 10}] // N
>Return small delta...

The issue is the limitations of machine precision numbers. This
is easily demonstrated by

In[36]:= a = Cos[x]^2 - Sin[x]^2;
b = Cos[x]^4 - Sin[x]^4;
Union[Table[a - b, {x, -10, 10}] // Simplify]

Out[38]= {0}

or

In[39]:= Union[Table[a - b, {x, -10, 10}] // N // Chop]

Out[39]= {0}

or most directly by

In[41]:= a - b // Simplify

Out[41]= 0


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google