RandomTools - Maple Programming Help

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

 > $\mathrm{with}\left(\mathrm{RandomTools}\right):$
 > $\mathrm{GenerateSimilar}\left(2{x}^{2}+3y+1.23\right)$
 ${-}{7.000000000}{}{{x}}^{{2}}{+}{6.000000000}{}{y}{+}{1.95}$ (1)

Compatibility

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