RandomTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Random Objects : RandomTools package : Commands : RandomTools/RemoveFlavor

RandomTools

  

RemoveFlavor

  

remove a flavor template

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RemoveFlavor(flvr)

Parameters

flvr

-

symbol; represents a flavor in the form of a procedure or module

Description

• 

The RemoveFlavor(flvr) removes the flavor specified by flvr from the list of flavors that function Generate recognizes.

  

If the flavor is not known to function Generate, an exception is raised.

• 

This function is part of the RandomTools package, and so it can be used in the form RemoveFlavor(..) only after executing the command with(RandomTools). However, it can always be accessed through the long form of the command by using the form RandomTools[RemoveFlavor](..).

Examples

withRandomTools:

GenerateA

Error, (in RandomTools:-Generate) the flavor `A` does not exist

AddFlavorA=rand1..20

procprocoptionbuiltin=RandNumberInterface;end proc6,20,5+1end proc

(1)

GenerateA

15

(2)

GenerateA

13

(3)

memberA,GetFlavors

true

(4)

RemoveFlavorA

GenerateA

Error, (in RandomTools:-Generate) the flavor `A` does not exist

memberA,GetFlavors

false

(5)

See Also

module

procedure

RandomTools

RandomTools[AddFlavor]

RandomTools[Generate]

RandomTools[GetFlavors]

 


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