added nan and relational operators, fixed log for complex numbers