On Fri, Mar 08, 2024 at 03:28:49PM +0100, Ralf Hemmecke wrote:
> That is strange. I tried that before I asked.
>
> %%%% (1) -> ratDenom sqrt(3/5)
>
> +-+
> |3
> (1) |-
> \|5
> Type: AlgebraicNumber
>
> You must have a different version than me.
FriCAS used to automatically split roots. To get the
above now do
rootSplit(r)
note that AlgebraicNumber automatically removes root from the
donomiantor. You need ratDenom for Expression.
I would like to add more functions doing root simplifications,
in particular replacing dependent roots by independent ones,
changing expression so that there are only integer/polynomial
roots and number of independent roots do not increase, etc.
--
Waldek Hebisch