This bug happens with FriCAS newer than 1.3.0:
(1) -> latex(1)
Function: -? : % -> % is missing from domain: NonNegativeInteger
Internal Error
The function - with signature $$ is missing from domain
NonNegativeInteger
I don't know which commit causes this bug, but there's a simple fix:
diff --git a/src/algebra/integer.spad b/src/algebra/integer.spad
index 3b1a6966..40dec815 100644
--- a/src/algebra/integer.spad
+++ b/src/algebra/integer.spad
@@ -106,7 +106,7 @@
latex(x : %) : String ==
s : String := string(x pretend Integer)$String
- (-1 < (x pretend Integer)) and ((x pretend Integer) < 10) => s
+ (0 <= (x pretend Integer)) and ((x pretend Integer) < 10) => s
concat("{", concat(s, "}")$String)$String
positiveRemainder(a, b) ==
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.