Dear all!

first of all, a big thank you for providing 1.3.5 and your cooperation 
concerning InputForm!  I sincerely hope that having more of FriCAS features 
exposed in sage will sparkle also more interest in FriCAS itself, 
especially where it shines!

Now the next question: recently, the following bug was found:

(1) -> integrate((%i*a*tan(d*x + c) + a)^3*tan(d*x + c), x)
 
   >> System error:
   arithmetic error DIVISION-BY-ZERO signalled
Operation was /, operands (-2 0).

While the real difficulty seems to be tricky to fix 
(see https://groups.google.com/forum/#!topic/fricas-devel/TaduS9mswqE), 
what I am asking for now is something much simpler: could we have an ioHook 
for these messages?

I think an easy fix would be as follows.

All the best and thanks again!

Martin

diff --git a/src/interp/g-error.boot b/src/interp/g-error.boot
index e816e096..ce7c5175 100644
--- a/src/interp/g-error.boot
+++ b/src/interp/g-error.boot
@@ -151,6 +151,7 @@ sayErrorly(errorLabel, msg) ==
   sayErrorly1(errorLabel, msg)
 
 sayErrorly1(errorLabel, msg) ==
+  ioHook("startKeyedMsg", errorLabel, msg)
   sayBrightly '" "
   if $testingSystem then sayMSG $testingErrorPrefix
   sayBrightly ['"   >> ",errorLabel,'":"]
@@ -158,6 +159,7 @@ sayErrorly1(errorLabel, msg) ==
   msg is ['mathprint, mathexpr] =>
     mathprint mathexpr
   sayBrightly msg
+  ioHook("endOfKeyedMsg", errorLabel)



-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/bae8fbe7-be0f-467a-92b1-d133178b4d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to