Re: Re: TrigExpand - Odd behavior
- To: mathgroup at smc.vnet.net
- Subject: [mg55458] Re: [mg55441] Re: TrigExpand - Odd behavior
- From: DrBob <drbob at bigfoot.com>
- Date: Thu, 24 Mar 2005 03:41:59 -0500 (EST)
- References: <200503231034.FAA04048@smc.vnet.net>
- Reply-to: drbob at bigfoot.com
- Sender: owner-wri-mathgroup at wolfram.com
>> I just thought that it is frustratingly complex for
>> something that can be written so simply and which
>> Mathematica will, in fact, obtain if you tickle it
>> in just the right way
So tickle it the right way.
TrigExpand is intended to EXPAND expressions. Don't be surprised if it doesn't give you the simplest possible answer.
On Wed, 23 Mar 2005 05:34:52 -0500 (EST), <stagat at linkline.com> wrote:
> Thanks for all your comments.
> Yes, I realize that the lengthy expression provided by Mathematica is correct.
> Perhaps a better example of the result I'd hoped to see is given by the
> following comparison...
> Cos[45 Degree]
> Sin[45 Degree]
> %/.y->45 Degree
> Cos[x+y]/.y->45 Degree
> In the first three examples, Mathematica recognizes that Cos[45 Degree] and Sin[45
> Degree] both have the exact value 1/Sqrt.
> In the fourth example it appears that Mathematica recognizes that (45 Degree) is
> ('an integer' Times 'something') and then tries to be (too) clever about
> expanding that before replacing the 'something' with Degree. This is further
> illustrated in the following example...
> Cos[x+45 z]
> So it's not that I thought the result was incorrect, I just thought that it
> is frustratingly complex for something that can be written so simply and
> which Mathematica will, in fact, obtain if you tickle it in just the right way.
> ~ BS ~
DrBob at bigfoot.com
Prev by Date:
Re: Newbie Question About An Error Message
Next by Date:
Why is the Arrow routine so poor?
Previous by thread:
Re: TrigExpand - Odd behavior
Next by thread: