I'm figuring out complex algebraic calculation in gnu-calc.
Suppose: after many long calculation I got following algebraic expression:
-8 * a - 2 * b + 2 * b * i - 40 * i - 8
and I want the imaginary part of above expression so I do
f i (M-x calc-im) .
-8 * im(a) - 2 * im(b) + 2 * re(b) - 40
Of course above is correct, However I want to a,b have a Real Values (i.e. im(a) = 0, im(b) = 0) for further calculations. So desired output for above is: 2 * b - 40.
Question: How to declare variables (in this case a and b) in Real number such that their imaginary part is 0 (for algebraic calculation)?