Post Reply 
solve() problems
06-07-2021, 12:53 PM (This post was last modified: 06-07-2021 12:56 PM by HansB.)
Post: #13
RE: solve() problems
(06-06-2021 03:54 PM)Albert Chan Wrote:  You can quote the expression in CAS, to keep variable X "symbolic"

CAS> solve('X*X+X-1'=0, X)       → {1/2*(-√5-1), 1/2*(√5-1)}
CAS> proot('X*X+X-1')               → [−1.61803398875, 0.61803398875]
Thank you, works nicely! So solve() with expression in single quotes is quite useful, both in Home and in CAS, only CAS needs explicit mention of which var to solve, and never mind it is in upper case!

C.Ret Wrote:[....]
The program convert your sophisticated expression by replacing lowercase x with uppercase X without evaluating it and store it in the F1 ... F0 slot of you chose ready to be plot !
[....]
Thank you, your CAS2FUN program works beautiful, especially as it can place the expression into a Fn var of Function, and it gets instantly plotted there!

How do I write a reverse function, say FUN2CAS(n), which takes Fn from Function and inserts it into the CAS, with upper X replaced by lower x?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
solve() problems - HansB - 06-04-2021, 07:51 PM
RE: solve() problems - rawi - 06-05-2021, 06:17 AM
RE: solve() problems - HansB - 06-05-2021, 07:19 AM
RE: solve() problems - Joe Horn - 06-05-2021, 07:06 AM
RE: solve() problems - HansB - 06-05-2021, 07:28 AM
RE: solve() problems - C.Ret - 06-05-2021, 07:43 AM
RE: solve() problems - toml_12953 - 06-05-2021, 09:53 AM
RE: solve() problems - Dougggg - 06-05-2021, 06:29 PM
RE: solve() problems - C.Ret - 06-05-2021, 07:25 PM
RE: solve() problems - HansB - 06-06-2021, 08:42 AM
RE: solve() problems - Albert Chan - 06-06-2021, 03:54 PM
RE: solve() problems - HansB - 06-07-2021 12:53 PM
RE: solve() problems - jte - 08-06-2021, 08:39 PM
RE: solve() problems - C.Ret - 06-06-2021, 02:45 PM
RE: solve() problems - C.Ret - 06-07-2021, 06:09 PM
RE: solve() problems - HansB - 06-08-2021, 06:34 AM
RE: solve() problems - C.Ret - 06-09-2021, 08:53 PM
RE: solve() problems - Albert Chan - 07-13-2021, 07:04 PM
RE: solve() problems - C.Ret - 07-14-2021, 08:19 AM
RE: solve() problems - Liamtoh Resu - 08-06-2021, 09:25 PM



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