HP Forums

Full Version: Function in program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
Thanks Han, very easy and useful
Reference URL's