Student - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Package : Linear Algebra : Student/SetDefault

Student

  

SetDefault

  

set defaults for parameters

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

SetDefault(opts)

Parameters

opts

-

1 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.

  

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

conjugate=false,infodigits=4,hardwarefloats=false

(1)

withLinearAlgebra:

Aa,b

A:=ab

(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

d:=conjugate=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)

infolevelStudent[LinearAlgebra]1:

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:

a,b.c,d

a&conjugate0;c+b&conjugate0;d

(16)

See Also

Student

type/posint

type/truefalse

UseHardwareFloats

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam