Approximated complex numbers. How I put them to zero?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
matteo.bina
Messages
2
Reaction score
0
Dear all,
I'm fighting against complicated expressions which contain complex numbers that, after some calculations and simplifications, appear in a form like: 1. + 0.I. I think that this weighs down the next calculations.
The question is: how can I put zero the imaginary part? or, in general, how can I set a threshold for a number under which it must be considered as zero?
Thank you very much!

Teo
 
Physics news on Phys.org
Ok...thank you very much!
I was absolutely convinced to have put the Mathematica reference...I've learned: never to be convinced!
Thanks again...I will try!