RandomTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

RandomTools

  

GenerateSimilar

  

create a random expression similar to the one given

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

GenerateSimilar( expr )

Parameters

expr

-

integer, float, polynomial, general expression

Description

• 

The GenerateSimilar command produces a new expression that is similar to the given expression.  The structure and variables in the original expression are preserved, but new constants are injected.  The random floats and integers in the new expression will be the same magnitude as the original.

Examples

withRandomTools:

GenerateSimilar2x2+3y+1.23

7.000000000x2+6.000000000y+1.95

(1)

Compatibility

• 

The RandomTools[GenerateSimilar] command was introduced in Maple 2020.

• 

For more information on Maple 2020 changes, see Updates in Maple 2020.

See Also

HowDoI,WorkWithRandomGenerators

InertForm

rand

RandomTools

RandomTools[Generate]

randpoly