SetDefault - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Student

  

SetDefault

  

set defaults for parameters

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SetDefault(opts)

Parameters

opts

-

one or more arguments of the form option = value or option

Description

• 

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.

Examples

withStudent:

SetDefault

hardwarefloats=false,conjugate=false,infodigits=4

(1)

withLinearAlgebra:

Aa,b

Aab

(2)

NormA,2

a2+b2

(3)

NormA,2,conjugate=true

a2+b2

(4)

SetDefaultconjugate

conjugate=false

(5)

SetDefaultconjugate=true

conjugate=false

(6)

NormA,2

a2+b2

(7)

v1.37,3.4:

w5.2,1.1:

v·w

3.38400000000000034

(8)

A·w

5.2a&conjugate0;1.1b&conjugate0;

(9)

dSetDefaultconjugate=false,hardwarefloats=deduced

dconjugate=true,hardwarefloats=false

(10)

v·w

3.38400000000000034

(11)

A·w

5.2a1.1b

(12)

SetDefaultd,infodigits=3

conjugate=false,hardwarefloats=deduced,infodigits=4

(13)

infolevelStudentLinearAlgebra1:

EigenPlot2,3|2,1

restart

withStudent:

withMultivariateCalculus:

a,b·c,d

ac+bd

(14)

`.`(<a,b>, <c,d>, conjugate=true);

a&conjugate0;c+b&conjugate0;d

(15)

SetDefaultconjugate=true&colon;

a&comma;b·c&comma;d

a&conjugate0;c+b&conjugate0;d

(16)

See Also

Student

type/posint

type/truefalse

UseHardwareFloats