Post Reply 
solve() problems
06-05-2021, 07:06 AM
Post: #3
RE: solve() problems
(06-04-2021 07:51 PM)HansB Wrote:  ... Now on my Home screen using solve() function does not give me any solutions, just X. For instance taking the simple example from the solve() Help:
solve(X-3=1) -> X

Two problems here. (1) Home view is intended for floating-point number crunching, not symbolic math manipulations or exact calculations. That's what CAS view is for. (2) Notice that all the examples for solve() in the Help system use lowercase 'x', which causes a syntax error in Home view when no value has been stored in the variable 'x' yet. This serves as a reminder to you that solve() is a function that performs symbolic math manipulation, so you should only use it in CAS, where undeclared variables are treated symbolically as expected, instead of as syntax errors.

You can force Home to treat uppercase 'X' as a symbolic variable (which it isn't really) by putting your algebraic expressions in single quote marks like this:
solve( 'X^2-3=1' , 'X' )
but that's silly. Use CAS for CAS problems, and use Home for number crunching.

<0|ΙΈ|0>
-Joe-
Visit this user's website 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: 1 Guest(s)