Switch statement on cas mode
|
10-03-2020, 01:34 AM
Post: #1
|
|||
|
|||
Switch statement on cas mode
Does anyone have an idea of how to compose switch statements on CAS programs? There's this from the giac documentation, but it does not seem to work since the brackets syntax for blocks is not a thing on the prime version.
|
|||
10-03-2020, 01:44 AM
(This post was last modified: 10-03-2020 01:46 AM by toml_12953.)
Post: #2
|
|||
|
|||
RE: Switch statement on cas mode
(10-03-2020 01:34 AM)fakuivan Wrote: Does anyone have an idea of how to compose switch statements on CAS programs? There's this from the giac documentation, but it does not seem to work since the brackets syntax for blocks is not a thing on the prime version.Since SWITCH isn't even in the catalog, I use a string of IF ... ELSEIF ... ELSEIF ... ELSE ... END statements Tom L Cui bono? |
|||
10-03-2020, 05:02 AM
Post: #3
|
|||
|
|||
RE: Switch statement on cas mode
switch, case and default are reserved words on CAS (try to assign a value to them). There are many functions that are not in the catalogue but are still accessible. I'm hoping here someone with the code for the calculator in hand can tell me if it's possible to get it working. I'm aware of the alternatives like early returns or concatenated if statements.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)