Post Reply 
Input data type for fsolve() for PPL
07-02-2019, 07:11 PM
Post: #8
RE: Input data type for fsolve() for PPL
(07-01-2019 07:17 PM)teerasak Wrote:  Thank you, roadrunner. That’s work! Why do we need to remove declaration of x, y variable?

You can make the variables local to the entire scope of the program:

Code:

LOCAL x,y;

EXPORT temp()
BEGIN
// LOCAL x,y;

  LOCAL equn;
  equn:="[x^2+y-2,x+y^2-2],[x,y],[0,0]";
  RETURN CAS.fsolve(EVAL(equn));
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Input data type for fsolve() for PPL - DrD - 07-02-2019 07:11 PM



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