Post Reply 
How to run an expression in CAS mode in program
06-23-2017, 05:18 PM
Post: #4
RE: How to run an expression in CAS mode in program
There once was a thread concerning MOD, you perhaos should look at :
(08-21-2015 11:09 AM)parisse Wrote:  MOD was implemented inside the CAS for the first version of the 39GII, it was not meant to be used with exact data, the CAS function for integer remainder is irem, and here the right function is powmod(7,23,143) because computing 7^23 before doing remaindering is much much less efficient.
I will add integer checking for arguments inside MOD.

which here then can be used : powmod(a,n-1,n)
Arno
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to run an expression in CAS mode in program - Arno K - 06-23-2017 05:18 PM



User(s) browsing this thread: 1 Guest(s)