On Mon, Apr 27, 2026 at 06:21:22AM -0700, eric ten cate wrote:
> Hello Fricas developers,
>
> I am relative new to Fricas. I think there is a small inconsistency in
> manip.spad.
> The 'if-then-else' around rootFactor in the 'Exports' is inconsistent with
> the if-then-else in 'Implementation', see below.
Yes, this is limitation of current implementation, not reflected
in 'Exports' part.
> Can someone tell me why Float does not have PolynomialFactorizationExplicit?
> 'Float has PolynomialFactorizationExplicit' results in false. Is it not
> implemented or doesn't Float have the properties?
It is a mixture of both. First, needed operations are not implemented
for Float. Second, while theoretically well defined the operations
are numerically quite unstable. One could try do define more
appropriate version but it is not clear if the results would be
good.
In general, a lot of algorithms that FriCAS use are "generic",
that is could be used over many domains. But due to approximative
nature of Float and numerical instability using them with Float-s
usualy does not lead to satisfactory result. So in FriCAS there
is tendency to disallow such operations in type rules.
Otherwise users would try them and complain of nonsense results.
--
Waldek Hebisch