Student
SetDefault
set defaults for parameters
Calling Sequence
Parameters
Description
Examples
SetDefault(opts)
opts
-
one or more arguments of the form option = value or option
The SetDefault(opts) command sets the default value of the corresponding options for use in Student package routines. More than one such option setting can be given in the command invocation. This command can also be called as SetDefaults('opts').
If given just in the form option the current value of the corresponding option is returned.
The options which can be set or queries this way are:
Option name
Type
Purpose
hardwarefloats
truefalse or deduced
whether to use hardware in
float computations
conjugate
truefalse
whether to treat variables as
real (false) or complex (true)
infodigits
posint
number of digits to display in
messages associated with plots
The return value from a call to SetDefault is an expression sequence showing the current value of each option given in the argument form option and/or the previous value of each option given in the form option = value. This allows you to save and restore the prior state when temporarily modifying the default setting of one or more options.
If no arguments are given, so the invocation is just as SetDefault(), an expression sequence giving the current values of all options settable through this means is returned.
The conjugate option can also be locally adjusted by providing a conjugate parameter in the calling sequence to any package function which accepts it.
with⁡Student:
SetDefault⁡
hardwarefloats=false,conjugate=false,infodigits=4
with⁡LinearAlgebra:
A≔a,b
A≔ab
Norm⁡A,2
a2+b2
Norm⁡A,2,conjugate=true
SetDefault⁡conjugate
conjugate=false
SetDefault⁡conjugate=true
v≔1.37,3.4:
w≔5.2,−1.1:
v·w
3.38400000000000034
A·w
5.2⁢a&conjugate0;−1.1⁢b&conjugate0;
d≔SetDefault⁡conjugate=false,hardwarefloats=deduced
d≔conjugate=true,hardwarefloats=false
5.2⁢a−1.1⁢b
SetDefault⁡d,infodigits=3
conjugate=false,hardwarefloats=deduced,infodigits=4
infolevelStudentLinearAlgebra≔1:
EigenPlot⁡2,3|2,−1
restart
with⁡MultivariateCalculus:
a,b·c,d
a⁢c+b⁢d
`.`(<a,b>, <c,d>, conjugate=true);
a&conjugate0;⁢c+b&conjugate0;⁢d
SetDefault⁡conjugate=true:
See Also
type/posint
type/truefalse
UseHardwareFloats
Download Help Document