rsimp again

22 views
Skip to first unread message

Ralf Hemmecke

unread,
Jan 14, 2025, 8:19:50 AMJan 14
to fricas-devel
Hi Waldek,

I know that rsimp isn't perfect and that you will improve it in the
future. But somehow I find this result a bit weird given that 31^2=961.

Ralf

%%% (240) -> xx := sqrt(-155*sqrt(5)+543)

+----------------+
| +-+
(240) \|- 155 \|5 + 543
%%% (241) -> (rsimp(xx)$RootSimplification)

+---+
+-+ |961
(31 \|5 - 25) |---
\| 10
(241) --------------------
31

Waldek Hebisch

unread,
Jan 14, 2025, 4:52:00 PMJan 14
to 'Ralf Hemmecke' via FriCAS - computer algebra system
The attached patch makes this simpler: when numerator or denominator
is an exact power it pulls corresponding factor before root sign.

--
Waldek Hebisch
sum6a.diff

Ralf Hemmecke

unread,
Jan 15, 2025, 6:11:42 AMJan 15
to fricas...@googlegroups.com
Thank you. That's much better.

%%% (150) -> 1/((rsimp(xx)$RootSimplification)::AN)

+-+
31 \|5 - 25
(150) ------------
+--+
\|10


Ralf
Reply all
Reply to author
Forward
0 new messages