next up previous contents index
Next: Pretty Output and Tex Up: Utilities Previous: SaveRulesQ[]   Contents   Index

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[ { a $ \rightarrow $ x, b $ \rightarrow $ y }, Sin, Cos] gives {Sin[a] $ \rightarrow $ Cos[x], Sin[b] $ \rightarrow $ 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



NCAlgebra Project 2002-09-09