ScriptedFunction

ScriptedFunction -- the class of all scripted functions, by which we mean those functions 'f' of one argument 'x' which accept their argument as a subscript 'f_x' or as a superscript 'f^x'.

To create a new subscripted function use a statement of the following form.

          f = new ScriptedFunction from { subscript => (x) -> ... }
To create a new superscripted function use a statement of the following form.
          f = new ScriptedFunction from { superscript => (x) -> ... }
The subscript and superscript options can be combined to create a scripted function which accepts either a subscript or a superscript.

A good example of a subscripted function is identity.

See also ScriptedFunctor.

Go to main index.

Go to concepts index.