Modulo.mpws possible bug

12 views
Skip to first unread message

Kyle Johnson

unread,
Jul 23, 2019, 9:40:11 PM7/23/19
to mathpiper-dev
While in the process of moving the tests from arithmetic_test.mpws I changed the *E.G. format to the new *EXAMPLES format.

I wasn't able to get it working. So I pulled up the graphic consoles and tried some of the examples independently.


In> Modulo(5,3)
Result: 2

In> Modulo('x^2-5*'x+2,'x-1)
Result: Exception
Exception: Error: The 1 parameter version of procedure <CanBeUni> is not defined (MAKE SURE THE PROCEDURE'S NAME IS SPELLED CORRECTLY and the correct number of arguments are being passed to it.) Starting at index 0.

In> Modulo('x^2-5*'x+2,'x-'k,['x])
Result: Exception
Exception: Error: The 3 parameter version of procedure <Modulo> is not defined (MAKE SURE THE PROCEDURE'S NAME IS SPELLED CORRECTLY and the correct number of arguments are being passed to it.) Starting at index 0.


I'm not sure what it means by the second error. "CanBeUni" is referenced a handful of times in the document but I'm not sure I understand what it does.

I'll leave it in the old format for now and just move the test for the time being. 

The path to this file is: mathpiperide\src\library_apps\mathpiper4\src\org\mathpiper\scripts4\stubs\Modulo.mpws

Thanks!

Ted Kosan

unread,
Jul 24, 2019, 3:37:37 PM7/24/19
to mathpi...@googlegroups.com
Kyle,

These two examples are commented out in
"mathpiperide\src\library_apps\mathpiper4\src\org\mathpiper\scripts4\stubs\Modulo.mpws"
because they depend on "CanBeUni", and "CanBeUni" was moved into
storage. The reason that "CanBeUni" was moved into storage is because
most MathPiper procedures that are related to solving were moved into
storage (because they were incomplete), and they were replaced by
calling to the "Reduce" CAS to obtain solving-related functionality.
Reduce is a commercial-quality CAS, and the Java version of it is
bundled with MathPiper.

The parts of Reduce that are needed to handle these symbolic modulo
problems has not been interfaced to MathPiper yet. So for now, these
two examples can remain commented out.

Ted
> --
> You received this message because you are subscribed to the Google Groups "mathpiper-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mathpiper-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/mathpiper-dev/a8ab783d-eb5a-431f-ad5c-33db9f5082c9%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages