I can only think of this way:

(real z + sqrt(-1)*imag z)::AN

- Qian

On 3/22/24 20:22, Ralf Hemmecke wrote:
Suppose by some computation I get an expression like

z := (10*sqrt(163)+11*%i)/13/sqrt(105)

I would like to transform it into an element of AlgebraicNumber.

Unfortunately, up to now I was unable to find a function that helps to to the retraction.

Does someone know a way for cases where I know that the input actually can happily live in AN?

Thank you in advance.
Ralf

PS: That is one of the situations where things that look simple are hard for users to actually perform.


--
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/67fe6c95-33b9-4a9e-b95d-3bc9864f252c%40gmail.com.

Reply via email to