Post Reply 
Report problems with CAS and its interface.
05-30-2024, 08:57 PM
Post: #23
RE: Report problems with CAS and its interface.
(05-30-2024 02:34 AM)compsystems Wrote:  solve([(-4*x-8*y) = 2,(2*x) = (8+4*y)],[x,y]) [enter] returns {[7/4,-9/8]}

There is one bracket too many. {[7/4,-9/8]} => [7/4,-9/8]

It would seem to me that this is due to solve returning a set of results. To keep the type of result consistent, a singleton set is returned. (If it were otherwise, and incorporated into a larger routine, that routine would have to check the type of result returned — set or no.)

For example, solve([(y^2) = 2],[y]) returns {[sqrt(2)],[-sqrt(2)]}.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Report problems with CAS and its interface. - jte - 05-30-2024 08:57 PM



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