complex - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


RandomTools Flavor: complex

describe a flavor of a random complex number

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

complex(flav)

Parameters

flav

-

random flavor

Description

• 

The flavor complex describes a random complex number with real and imaginary parts described by the given random flavor flav.

  

This flavor can be used as an argument to RandomTools[Generate] or as part of a structured flavor.

Examples

> 

with⁡RandomTools:

> 

Generate⁡complex⁡integer

−104281139460−306860183579⁢I

(1)
> 

Generate⁡complex⁡rational⁡range=−3..3,denominator=720

−359120+953⁢I360

(2)
> 

Generate⁡list⁡complex⁡nonnegint⁡range=10,10

10+3⁢I,5+4⁢I,10,7+4⁢I,9+10⁢I,1+I,3+7⁢I,10+2⁢I,8+9⁢I,1+10⁢I

(3)
> 

Matrix⁡3,3,Generate⁡complex⁡integer⁡range=2..7⁢identical⁡x+complex⁡integer⁡range=2..7,makeproc=true

3+7⁢I⁢x+5+2⁢I6+4⁢I⁢x+2+7⁢I6+7⁢I⁢x+5+4⁢I7+6⁢I⁢x+4+6⁢I5+4⁢I⁢x+3+4⁢I2+2⁢I⁢x+4+6⁢I6+3⁢I⁢x+3+3⁢I4+3⁢I⁢x+5+3⁢I2+6⁢I⁢x+2+5⁢I

(4)

See Also

complex

flavor/structured

rand

RandomTools

RandomTools[Generate]