Post Reply 
Function in program
02-16-2015, 03:47 PM
Post: #1
Function in program
How i can input a function programming??

ex
EXPORT calculx()
BEGIN
LOCAL x
CAS.cSolve(x^4-1,x);
MSGBOX("The solutionx is " +x);
END;

and say me error D:

I know solve this in Home or CAS, but i need in program xD

:3
Visit this user's website Find all posts by this user
Quote this message in a reply
02-16-2015, 04:21 PM
Post: #2
RE: Function in program
Two ways:

CAS.command("arg1", "arg2", ..., "argn")

Code:
EXPORT calcul()
CAS.cSolve("x^4-1=0","x");
END;

or create a cas program:

Code:
#cas
calculx():=
BEGIN
cSolve(x^4-1=0,x);
END;
#end

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
02-16-2015, 11:28 PM (This post was last modified: 02-16-2015 11:28 PM by nakjaen.)
Post: #3
RE: Function in program
Thanks Han, very easy and useful

:3
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: