Suppress - Maple Help

Typesetting

 Suppress
 suppress dependencies of functions
 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 $f\left(t\right)$ and $f\left(x,y\right)$ 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.
 • Suppression is restricted to functions having a simple or indexed name (i.e. the function name must be of type 'name') and the dependencies must be of type 'name'). None of the dependencies can be repeated, and the dependencies cannot be the same as the function name. So, for example, the functions $f\left(\mathrm{sin}\left(x\right)\right)$, $f\left(x,x\right)$, and $f\left(f\right)$ cannot be suppressed. In the event that an invalid function name is passed to Suppress a warning is issued.
 • 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 $x$ and $t$, respectively.

 Maple Without Suppress With Suppress ------------------ --------------------- ------------------ f(x) $f\left(x\right)$ $f$ diff(f(x),x) $f\text{'}\left(x\right)$ $f\text{'}$ D(f)(0) $f\text{'}\left(0\right)$ $f\text{'}\left(0\right)$ diff(g(t),t) $\stackrel{.}{g}\left(t\right)$ $\stackrel{.}{g}$ D(g)(0) $\stackrel{.}{g}\left(0\right)$ $\stackrel{.}{g}\left(0\right)$ diff(h(x,y),x,y) $\frac{{\partial }^{2}}{\partial x\partial y}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}h\left(x,y\right)$ $\frac{{\partial }^{2}}{\partial x\partial y}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}h$

 And with userep set to true we get:

 diff(h(x,y),x,y) $\frac{{\partial }^{2}}{\partial x\partial y}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}h\left(x,y\right)$ ${h}_{x,y}$

 Note that userep has no effect unless the function dependencies are also suppressed.
 • Note that setting and querying of function suppression can also be performed in the Dependency Suppression area of the interactive Typesetting Assistant.

Examples

 > $\mathrm{with}\left(\mathrm{Typesetting}\right):$

Suppress 'f' depending on 'x'

 > $\mathrm{Suppress}\left(f\left(x\right)\right)$

Later change this to f(x,y) -> warning is produced

 > $\mathrm{Suppress}\left(f\left(x,y\right)\right)$

Suppress multiple functions, some with errors. Error cases are ignored, and all other functions are processed.

 > $\mathrm{Suppress}\left(\left\{g\left(x,y\right),h\left(x,y\right),y\left(y\right),f\left[1\right]\left(x\right)\right\}\right)$

Query current suppression

 > $\mathrm{Suppress}\left(\mathrm{query}\right)$
 $\left\{{f}{,}{g}{,}{h}{,}{{f}}_{{1}}\right\}$ (1)

Unsuppress f(x,y) and query

 > $\mathrm{Unsuppress}\left(f\right)$
 > $\mathrm{Suppress}\left(\mathrm{query}\right)$
 $\left\{{g}{,}{h}{,}{{f}}_{{1}}\right\}$ (2)

Unsuppress all and query

 > $\mathrm{Unsuppress}\left(\mathrm{all}\right)$
 > $\mathrm{Suppress}\left(\mathrm{query}\right)$
 ${\varnothing }$ (3)