Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6489 > unrolled thread
| Started by | Philipp Weißgraeber |
|---|---|
| First post | 2011-11-17 11:07 +0000 |
| Last post | 2011-11-17 12:02 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Error in FullSimplify Philipp Weißgraeber - 2011-11-17 11:07 +0000
Re: Error in FullSimplify "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-11-17 12:02 +0000
| From | Philipp Weißgraeber |
|---|---|
| Date | 2011-11-17 11:07 +0000 |
| Subject | Error in FullSimplify |
| Message-ID | <ja2psp$ma5$1@smc.vnet.net> |
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] | [next] | [standalone]
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Date | 2011-11-17 12:02 +0000 |
| Message-ID | <ja2t5c$n48$1@smc.vnet.net> |
| In reply to | #6489 |
This can indeed be easily explained. You didn't take apropriate care of operator priorities. In your case the last FullSimplify acts on 4. which is most probably not what you had intended. Hence either put brackets around the whole expression or use the function form FullSimplify[] In[136]:= 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] Out[136]= -4*I*Sin[4*x]*Sinh[3*x] In[139]:= 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.] Out[139]= -4*I*Sin[4.*x]*Sinh[3.*x] Hence it was not an error in FullSimplify but an error in the usage of it. Best regards, Wolfgang "Philipp Weißgraeber" <=?ISO-8859-15?Q?Philipp_Wei=DFgraeber?=> schrieb im Newsbeitrag news:ja2psp$ma5$1@smc.vnet.net... > 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] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web