Program code with solve function
|
06-29-2024, 02:28 AM
(This post was last modified: 06-29-2024 03:30 AM by ftneek.)
Post: #8
|
|||
|
|||
RE: Program code with solve function
(06-28-2024 05:54 PM)Gene222 Wrote: 2. In the program below, the variable noX is a purge variable that "does not exist". Is the variable noX just a symbolic variable within the confines of the solve function? The first argument of the solve command is Expr, an expression in any variable. By default solve solves tries to isolate x so if your expression has an x it can be omitted. If your expression does not have an x and the second argument is omitted, then no solution is provided (it solves for Var=x by default). Most of that can be inferred by reading the help text for the solve() command, though it doesn't seem to explicitly state the default is x. In CAS, any variable that has not been assigned a value is 'symbolic'. purge(x) type(x) -> DOM_IDENT x:=1 type(x) -> DOM_INT Also gX:='gX' shouldn't really do anything. In CAS View: purge(x) x:='x' -> "No such variable x" - neek |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Program code with solve function - SoxxoZ - 06-19-2024, 02:23 PM
RE: Program code with solve function - gehakte_bits - 06-20-2024, 10:04 PM
RE: Program code with solve function - Gene222 - 06-25-2024, 08:17 PM
RE: Program code with solve function - Gene222 - 06-26-2024, 04:10 AM
RE: Program code with solve function - Gene222 - 06-27-2024, 10:30 AM
RE: Program code with solve function - Gene222 - 06-28-2024, 05:54 PM
RE: Program code with solve function - ftneek - 06-29-2024 02:28 AM
RE: Program code with solve function - Gene222 - 06-29-2024, 04:31 PM
RE: Program code with solve function - gehakte_bits - 06-21-2024, 02:13 PM
RE: Program code with solve function - Gene222 - 07-09-2024, 09:19 PM
|
User(s) browsing this thread: 2 Guest(s)