Le mer. 29 mai 2024 à 07:20, Ralf Hemmecke <r...@hemmecke.org> a écrit :
>
> >>      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?

Yes... And it is still not satisfactory, I have to rewrite it. It is
not poetry I admit.

- Greg

-- 
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/CAHnU2dapaa7sS3_7nOpLAf__Cb%2B92FDP5R9GTb%2BJkNgTdg36_A%40mail.gmail.com.

Reply via email to