Assigned variables and batch purge (CAS utility functions)
|
10-17-2019, 09:17 PM
(This post was last modified: 11-08-2019 06:01 AM by dae.)
Post: #1
|
|||
|
|||
Assigned variables and batch purge (CAS utility functions)
Here are a three CAS utility functions. Two of them, varslistaz() and varslist2(), identify assigned variables, showing type and value. The third can be used to batch purge single-character lower-case variables.
When a-z variables have previously assigned values, they will not work correctly as symbols in expressions or functions. They need to be purged. varslistaz() will show you which a-z variables have been assigned. If you want to clear them all (but no others) run purgeaz(). varslist2() is designed for you to edit what you want to view. If you frequently use values such as e1, e2, e3, etc., you can add them to the list to see whether they have assigned values. A. varslistaz() identifies a-z variables which have been assigned values. It shows the variable type and the value. Code:
B. varslist2() is not limited to one-character variables. You can include any variable names by adding them to the mylist variable. Place the variable name in quotes and separate with a comma. Your variables can be placed anywhere in the list. Code:
C. purgeaz() clears the values from small a to small z (e and i are reserved and ignored) Code:
|
|||
02-27-2020, 07:00 PM
Post: #2
|
|||
|
|||
RE: Assigned variables and batch purge (CAS utility functions)
belated thank you for these!
would be nice if varslist could indicate the location, Home or CAS, see here. Cambridge, UK 41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47 Casio, Rockwell 18R |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)