4.13 Utilities

Most of these utilities are for saving things. They probably do not work nor will you wish to use them in the Notebook environment.

4.13.1 SaveRules[expression, ’optional tag ”message”’]

Aliases: SaveR
Description: Its main purpose is to control the Rules.temp file which records the rules used any time a Substitute command is used.
Arguments: SaveRules[On] turns on the Rules.temp for continuous recording of rules. SaveRules[Off] turns off the continuous record feature of Substitute commands, but any Substitute command can make a record in Rules.temp by using On as its optional argument. SaveRules[expression] will save the evaluated form of expression to the Rules.temp. SaveRules[expression,tag message”] will save the evaluated form of ’expression’ to the Rules.temp file with a explanatory message.
Comments / Limitations: SaveRules[”ccc”], where ccc is a string, can be used to include comments into the Rules.temp file. SaveRules[mathematical expression] will record the mathematical expression without its definitions.

4.13.2 SaveRulesQ[]

Aliases: SaveRQ
Description: SaveRulesQ[] indicates the status of the continuous recording feature of the Substitute commands into the Rules.temp file by message and returns True if continuous records are being made and False if continuous records are not being made.
Arguments: None
Comments / Limitations: Messages can be suppressed or enabled by typing Off[ SaveRulesQ::Off] and On[SaveRulesQ::On].

4.13.3 FunctionOnRules[Rules, Function1, Function2, (optional On)]

Aliases: FORules
Description: It maps Function1 onto the left hand side and Function2 onto the right hand side of each rule in a set of rules, and returns the new set of rule. For example, FunctionOnRules[ { ax, by }, Sin, Cos] gives {Sin[a] Cos[x], Sin[b] Cos[y] }
Arguments: Rules is a single rule or list of rules. Function1 and Function2 are any built-in Mathematica function, NCAlgebra function, pure function, or user-defined function.
Comments / Limitations: None