The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
Question about the use of the CAS solve function in a program
11-11-2023, 05:03 AM
Post: #1
Question about the use of the CAS solve function in a program
Is there any way to have a program use the solve function found in the CAS mode of the Prime? (or any other CAS function for that matter)

if I create a simple program like this:

EXPORT solve_function_test(x, y)
BEGIN
LOCAL answer;
answer := solve(x^2 - 2 * y + n = 0.5 * n^3, n);
RETURN answer;
END;

It gives a syntax error around the variable n, which I would assume is just contained to the solve function. If I create n as a local variable, it doesn't give any errors but always returns 0.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Question about the use of the CAS solve function in a program - ZDog2002 - 11-11-2023 05:03 AM



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