unitNormal x ==
       zero? x => [1, x, 1]
       one? x => [1, 1, 1]
       re := real(x); im := imag(x)
       re > 0 =>
           --im >= 0 => [1, x, 1]
           im > 0 => [1, x, 1]
           im < 0 => [-imaginary(), complex(-im, re), imaginary()]
       im <= 0 => [-1, -x, -1]
       [imaginary(), complex(im, -re), -imaginary()]

Given that zero? x is checked at the beginning and assuming that zero? x means "zero?(real(x)) and zero?(imag(x))", how can im=0 happen in the commented case?

Ralf

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/01e1e124-5f41-402d-b145-0fddd6b03c9a%40hemmecke.org.

Reply via email to