Typesetting[Suppress] - suppress dependencies of functions
Typesetting[Unsuppress] - disable dependency suppression for a function
|
Calling Sequence
|
|
Suppress(f)
Unsuppress(f)
|
|
Parameters
|
|
f
|
-
|
function, or a set or list of functions
|
|
|
|
|
Description
|
|
•
|
The Suppress command tells the Typesetting package to suppress the dependencies of a specified unknown function on display, and allow entry of that unknown function as just the function name on 2-D entry.
|
|
In addition, if Suppress is called with only the keyword query, it returns a set of all functions with dependency suppression currently enabled.
|
•
|
Only one suppression can be in effect at any time for a specific function name (e.g. you cannot suppress the dependencies of and at the same time). In the event that Suppress is called for a function with a function name already having a suppression rule, the new function overrides the old.
|
•
|
The Unsuppress function simply disables dependency suppression for the specified functions (which for Unsuppress can be simply the name of the functions, or the actual functions).
|
|
In addition, if Unsuppress is called with only the keyword all, it then disables all dependency suppression currently in effect.
|
•
|
Dependency suppression interacts heavily with differentiation options in Settings (namely useprime, prime, usedot, dot and userep) to display and parse derivatives in a more aesthetic way.
|
|
In the following examples, we will assume that the settings for useprime and usedot are set to true, and the settings for prime and dot are the names and , respectively.
|
Maple
|
Without Suppress
|
With Suppress
|
------------------
|
---------------------
|
------------------
|
f(x)
|
|
|
diff(f(x),x)
|
|
|
D(f)(0)
|
|
|
diff(g(t),t)
|
|
|
D(g)(0)
|
|
|
diff(h(x,y),x,y)
|
|
|
|
|
|
And with userep set to true we get:
|
diff(h(x,y),x,y)
|
|
|
|
|
|
Note that userep has no effect unless the function dependencies are also suppressed.
|
|
|
Examples
|
|
>
|
|
Suppress 'f' depending on 'x'
>
|
|
Later change this to f(x,y) -> warning is produced
>
|
|
Warning, depencency for function f has been overridden
| |
Suppress multiple functions, some with errors. Error cases are ignored, and all other functions are processed.
>
|
|
Warning, function cannot have the same name as an argument, ignored y(y)
| |
Query current suppression
>
|
|
| (1) |
Unsuppress f(x,y) and query
>
|
|
>
|
|
| (2) |
Unsuppress all and query
>
|
|
>
|
|
| (3) |
|
|