Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6496
| From | "Dr. Wolfgang Hintze" <weh@snafu.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Error in FullSimplify |
| Date | 2011-11-17 12:02 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ja2t5c$n48$1@smc.vnet.net> (permalink) |
| References | <ja2psp$ma5$1@smc.vnet.net> |
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 >
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
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
csiph-web