On Wed, May 29, 2024 at 07:20:11AM +0200, Ralf Hemmecke wrote:
> > > 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?
Take x = 2
--
Waldek Hebisch
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/Zlce2Q_HL4m07Vm3%40fricas.org.