Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6507 > unrolled thread

Re: Error in FullSimplify

Started byBob Hanlon <hanlonr357@gmail.com>
First post2011-11-18 11:27 +0000
Last post2011-11-18 11:27 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Error in FullSimplify Bob Hanlon <hanlonr357@gmail.com> - 2011-11-18 11:27 +0000

#6507 — Re: Error in FullSimplify

FromBob Hanlon <hanlonr357@gmail.com>
Date2011-11-18 11:27 +0000
SubjectRe: Error in FullSimplify
Message-ID<ja5ff3$6e1$1@smc.vnet.net>
This appears to have been fixed in version 8.

$Version

"8.0 for Mac OS X x86 (64-bit) (October 5, 2011)"

expr = (-E^((a + b I) x) + E^((a - b I) x) + E^((-a + b I) x) -
    E^((-a - b I) x));

expr /. {a -> 3, b -> 4} // FullSimplify

-4 I Sin[4 x] Sinh[3 x]

expr /. {a -> 3., b -> 4.} // FullSimplify

2 (Cos[(4. + 3. I) x] - Cosh[(3. + 4. I) x])

% // Rationalize // Simplify

-4 I Sin[4 x] Sinh[3 x]

In both v7 and v8 on a Mac you can simplify this symbolically as follows.

expr // ExpToTrig // Simplify

-4 I Sin[b x] Sinh[a x]


Bob Hanlon


On Thu, Nov 17, 2011 at 6:04 AM,  <"Philipp Wei=DFgraeber"@smc.vnet.net> wrote:
> Hello
>
> I have experienced some strange error in the FullSimplify-function in
> Mathematica 7.
>
> Input:
> (-E^((a+b I)x)+E^((a-b I)x)+E^((-a+b I)x)-E^((-a-b I)x))/.a->3 /.b->4 //
> FullSimplify
> (-E^((a+b I)x)+E^((a-b I)x)+E^((-a+b I)x)-E^((-a-b I)x))/.a->3. /.b->4.
> // FullSimplify
>
> Output:
> -4 I Sin[4 x] Sinh[3 x]
> -2 I Sin[4. x] Sinh[3. x]
>
> And the later result is wrong.
>
> What happens here, how can this be explained?
>
> CU
>
> Philipp

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web