complex-valued expression not simplifying completely (was: ARghh!!)
- To: mathgroup at smc.vnet.net
- Subject: [mg18790] complex-valued expression not simplifying completely (was: ARghh!!)
- From: paulh at wolfram.com (P.J. Hinton)
- Date: Thu, 22 Jul 1999 08:19:16 -0400
- Organization: Wolfram Research, Inc.
- References: <email@example.com>
- Sender: owner-wri-mathgroup at wolfram.com
In article <7n12tn$bd7 at smc.vnet.net>, "O. Matt Umurhan" <matt at kelvin.nas.nasa.gov> writes: > I am having the worst time dealing with a complex numbered expression. > The problem is this: I have a numerical expression I wish mathematica > to evaluate, the expression happens to be complex. So, I have it > do the evaluation and for output it gives me, for example, > > Out= ((1+ 2 I) - (43 - 4 I)) > > when the ouput ought to read: > > Out= -42 - 2 I > > it leaves the output with these damned parenthesis in there and > I do not know, for the life of me, how get take this output and > remove these strange and pesky parens. Given that the Mathematica kernel in its default state evaluates your first output to a simpler form: In:= ((1+ 2 I) - (43 - 4 I)) Out= -42 + 6 I it is not clear what might be causing your troubles. Perhaps you could post a minimal example of an input that gives rise to the undesired result? -- P.J. Hinton Mathematica Programming Group paulh at wolfram.com Wolfram Research, Inc. Disclaimer: Opinions expressed herein are those of the author alone.