set defaults for parameters - 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

SetDefault(opts)

Parameters

opts

-

1 or more equations of the form option = value

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.

  

The options which can be set 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 the previous value of each option given in the invocation.  This allows you to save and restore the prior state when temporarily modifying the default setting of one or more options.

• 

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:

withLinearAlgebra:

A:=a,b

A:=ab

(1)

NormA,2

a2+b2

(2)

NormA,2,conjugate=true

a2+b2

(3)

SetDefaultconjugate=true

conjugate=false

(4)

NormA,2

a2+b2

(5)

v:=1.37,3.4:

w:=5.2,1.1:

v.w

3.38400000000000034

(6)

A.w

5.2a&conjugate0;1.1b&conjugate0;

(7)

d:=SetDefaultconjugate=false,hardwarefloats=deduced

d:=conjugate=true,hardwarefloats=false

(8)

v.w

3.38400000000000034

(9)

A.w

5.2a1.1b

(10)

SetDefaultd,infodigits=3

conjugate=false,hardwarefloats=deduced,infodigits=4

(11)

infolevel[Student[LinearAlgebra]]:=1:

EigenPlot2,3|2,1

restart

withStudent:

withMultivariateCalculus:

a,b.c,d

ac+bd

(12)

a,b.c,d.conjugate=true

a&conjugate0;c+b&conjugate0;d

(13)

SetDefaultconjugate=true:

a,b.c,d

a&conjugate0;c+b&conjugate0;d

(14)

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