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 
Please help me understand
03-02-2014, 01:07 PM
Post: #1
Please help me understand
Regarding: ab:=solve(x^2-3=1,x)

If I enter the above expression directly in the command line on the CAS page, I get an expected list, {-2,2.} for this example.

If I try this programmatically I get an unexpected list, {x}:
EXPORT ab,x;
EXPORT dmy()
BEGIN
ab:=solve(x^2-3=1,x);
print(ab);
return ab;
END;

If I try this programmatically I get an unexpected, 0 value.
EXPORT ab,x;
EXPORT dmy()
BEGIN
ab=solve(x^2-3=1,x); // <---Replaced ":=" with just "=" here
print(ab);
return ab;
END;

What program operation similar to ab:=solve(x^2-3=1,x) will return the list {-2,2.}, as if directly input on the CAS command line? I've tried several approaches, including appending CAS.solve(..), no success yet, though.

Thanks, I'm still climbing the learning curve!

-Dale-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Please help me understand - DrD - 03-02-2014 01:07 PM
RE: Please help me understand - parisse - 03-02-2014, 03:56 PM
RE: Please help me understand - DrD - 03-02-2014, 04:22 PM
RE: Please help me understand - jebem - 03-02-2014, 04:41 PM
RE: Please help me understand - DrD - 03-02-2014, 05:23 PM
RE: Please help me understand - jebem - 03-02-2014, 05:33 PM
RE: Please help me understand - DrD - 03-02-2014, 05:45 PM



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