Post Reply 
How to run an expression in CAS mode in program
06-23-2017, 02:45 PM
Post: #3
RE: How to run an expression in CAS mode in program
(06-23-2017 12:49 PM)webmasterpdx Wrote:  How do I force it to run the line ( t:=(a^(n-1)) MOD n; ) in CAS mode while in a program?

You can pass the expression as a string to the CAS like that:
Code:
EXPORT test()
BEGIN
  LOCAL a,n,t;
  a:=503; n:=29;
  t:=CAS("(a^(n-1)) MOD n");
END;
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 - Didier Lachieze - 06-23-2017 02:45 PM



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