Post Reply 
New Version: 2014.1203
12-04-2014, 12:45 PM
Post: #37
RE: New Version: 2014.1124
(12-03-2014 09:56 PM)Han Wrote:  [quote='DrD' pid='22329' dateline='1417640584']
I'm not disagreeing -- just suggesting that we use restart without the ()'s to clear the variables. I just type it out.

Edit: So are you still seeing CAS variables even after using restart -- without parentheses?

There are [possibly] two problems: Documentation, and [possibly] inconsistent operation. The documentation problem is self-evident. Inconsistent is the manner in which the function is called vs. what gets cleared.

Virtual Calc Example:
Home view: a:=5; restart; a ---> 5 (not cleared)
Home view: a:=5; restart(); a ---> 5 (not cleared, no error)

CAS view restart; a ---> 5 (a from above, not cleared)
CAS view restart(); (a from above, Error pop up)
CAS view A:=4; restart; ---> 4 (not cleared)
CAS view a:=6; restart; ---> 6 (reused Home var a as CAS var, not cleared)

Variables created in Home view are not cleared when restart is used in CAS view.
Variables created in Home view, reused as CAS vars, are not cleared on restart command.

CAS view z:=10; restart; ---> [z] (NEW CAS var IS cleared)

User Guide documentation (Functions and commands):

"restart Purges all the variables. restart(NULL)"

If variables are unique to CAS view, restart, and restart(<single alphanumeric char>) will clear them. Using the described User Guide example restart() issues an error pop up.

On-device help documentation, the syntax given fails, the example fails, selecting the example [OK] fails. All use the wrong syntax. It does properly say that all CAS vars will be purged, (and CAS settings).

Clearly, the documentation does not match the restart, restart() command, which is the biggest issue for this topic. Perhaps a re-used Home var in CAS, since it isn't uniquely a CAS var, shouldn't be purged, (possibly leading to confusion), but may be reasonable. That inconsistency, will need to be overcome by experience, I guess.

I think the above summary is complete, but it seems that sometimes restart does the job, and other times I needed to use restart(x). I adopted the restart(x), since it seemed more dependable. My need arose when working with a several gradient problems, each using several CAS variables. At each conclusion, I used restart(x) to 'clear the slate' and begin anew.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New Version: 2014.1203 - Tim Wessman - 12-02-2014, 06:01 PM
RE: New Version: 2014.1124 - alexzkter - 12-02-2014, 06:19 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-02-2014, 06:27 PM
RE: New Version: 2014.1124 - Daniel - 12-02-2014, 09:33 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-02-2014, 10:16 PM
RE: New Version: 2014.1124 - lenborje - 12-03-2014, 09:30 AM
RE: New Version: 2014.1124 - lenborje - 12-03-2014, 12:06 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-02-2014, 10:20 PM
RE: New Version: 2014.1124 - Daniel - 12-02-2014, 10:32 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-03-2014, 01:20 AM
RE: New Version: 2014.1124 - DrD - 12-03-2014, 07:05 PM
RE: New Version: 2014.1124 - Kevin Ouellet - 12-03-2014, 02:00 AM
RE: New Version: 2014.1124 - Han - 12-03-2014, 02:39 AM
RE: New Version: 2014.1124 - Adriweb - 12-03-2014, 03:23 AM
RE: New Version: 2014.1124 - Giancarlo - 12-03-2014, 05:51 AM
RE: New Version: 2014.1124 - Tyann - 12-03-2014, 07:39 AM
RE: New Version: 2014.1124 - jebem - 12-03-2014, 07:54 AM
RE: New Version: 2014.1124 - jebem - 12-03-2014, 08:03 AM
RE: New Version: 2014.1124 - Tim Wessman - 12-03-2014, 05:44 PM
RE: New Version: 2014.1124 - mbeddo - 12-03-2014, 06:31 PM
RE: New Version: 2014.1124 - John Colvin - 12-04-2014, 04:51 AM
RE: New Version: 2014.1124 - mbeddo - 12-04-2014, 05:44 AM
RE: New Version: 2014.1124 - Mic - 12-03-2014, 06:48 PM
RE: New Version: 2014.1124 - Han - 12-03-2014, 08:27 PM
RE: New Version: 2014.1124 - DrD - 12-03-2014, 09:03 PM
RE: New Version: 2014.1124 - Han - 12-03-2014, 09:56 PM
RE: New Version: 2014.1124 - DrD - 12-04-2014 12:45 PM
RE: New Version: 2014.1124 - akmon - 12-03-2014, 08:50 PM
RE: New Version: 2014.1124 - Angus - 12-03-2014, 08:57 PM
RE: New Version: 2014.1124 - toml_12953 - 12-04-2014, 01:11 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-04-2014, 03:37 PM
RE: New Version: 2014.1124 - toml_12953 - 12-04-2014, 05:58 PM
RE: New Version: 2014.1124 - phgerin - 12-04-2014, 04:27 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-04-2014, 04:32 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-04-2014, 06:29 PM
RE: New Version: 2014.1124 - Tim Wessman - 12-05-2014, 02:24 AM
RE: New Version: 2014.1124 - Han - 12-05-2014, 04:03 AM
RE: New Version: 2014.1124 - anderin - 12-05-2014, 07:05 AM
RE: New Version: 2014.1124 - Thomas_Sch - 12-05-2014, 07:44 AM
RE: New Version: 2014.1124 - toml_12953 - 12-05-2014, 08:08 AM
RE: New Version: 2014.1203 - Tim Wessman - 12-15-2014, 09:59 PM
RE: New Version: 2014.1203 - Assesham - 12-16-2014, 12:36 AM
RE: New Version: 2014.1203 - Tim Wessman - 12-16-2014, 12:58 AM
RE: New Version: 2014.1203 - Gerald H - 12-16-2014, 08:13 AM
RE: New Version: 2014.1203 - Assesham - 12-16-2014, 07:39 AM
RE: New Version: 2014.1203 - ww63 - 12-16-2014, 07:46 AM
RE: New Version: 2014.1203 - Divasson - 12-16-2014, 08:08 AM
RE: New Version: 2014.1203 - Tim Wessman - 12-18-2014, 02:02 AM
RE: New Version: 2014.1203 - Mic - 12-22-2014, 09:47 AM



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