Function: setdef - set defaults for the math package

Calling Sequence:

setdef(fn1, d1, fn2, d2, ...);

Parameters:

fn - name of a math function or of a math environment variable

d - a name or equation, or a list of names or equations

Description:

setdef sets dafaults for various math functions or the environment variables of the package.

The following table lists all the options and environment variables that can be set with setdef.
<
anyname > is a placeholder for the actual value of type anyname .

fn d
math function, options=<value>, sets env variable
env variable <value>
-----------------------------------------------------------------------------------------
cartgridR3: color=<name> cartgridR3Color
step=[<numeric>, <numeric>] cartgridR3Step
curdir: <string> curdir
curveplot: length=<numeric> curveplotLength
vertical=<boolean> curveplotVertical
verticalcolor=<name> curveplotVerticalColor
tangentcolor=<name> curveplotTangentColor
normalcolor=<name> curveplotNormalColor
extrema: use=<name> extremaUse
floats=<boolean> extremaFloat
xeps=<numeric> extremaEps
xstep=<numeric> extremaStep
fnull: alg=<name> fnullAlg
approx=<boolean> fnullApprox
eps=<numeric> fnullEps
force=<boolean> fnullForce
checkdomain=<boolean> fnullCheckDomain
numerator=<boolean> fnullNumerator
step=<numeric> fnullStep
gridplot: (see cartgridR3)
seqplot: plotlimit=<name> seqplotLimitColor
vector: 'horizontal' or 'vertical' _MathVector
_MathDomain: <range> _MathDomain
_MathEps: <numeric> _MathEps
_MathQuiet: <boolean> _MathQuiet

To assign multiple defaults for one math function, put the definitions d1, d2, .., dk into a list.

The function returns NULL and assigns values to the environment variables (see the above right column) only if the correct type of value is given. You may check your definitions by querying math[showdef] which lists all environment variables of the math package.

setdef is not part of the math package and can be readlib'ed from the library directly. Thus you can set dafault values for the package without having to initialize it before. The initialization procedure of math does not change any environment variable that has been assigned previously.

Examples:

> readlib(setdef):

> setdef(
extrema, floats=true,
fnull, [eps=1e-5, numerator=true, checkdomain=false],
vector, vertical);

> with(math):

> showdef;

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

See Also:

showdef , initialization , customizing the math package .

Version History:

Version 1.0 as of December 30, 1997