MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Simplify complex equation

I tried the following code which attend to extract the real and the
imaginary part of q4.
z, s, f, s2 are all real numbers.
Why I get imaginary part in the first answer and zero in the 2nd

q1 = Iz;
q2 = q1 + s;
q3 = (q2 f)/(f - q2);
q4 = q3 + s2;

Out = s2 + (f s)/(f - s - Iz) + (f Iz)/(f - s - Iz)

Out = 0

  • Prev by Date: Re: How to bring up specific doc page programmatically?
  • Next by Date: Re: Formatting integers in strings
  • Previous by thread: System wide parallel defaults
  • Next by thread: Re: Simplify complex equation