Re: Re: RandomComplex documentation
- To: mathgroup at smc.vnet.net
- Subject: [mg80207] Re: [mg80124] Re: RandomComplex documentation
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 14 Aug 2007 07:20:32 -0400 (EDT)
- Reply-to: hanlonr at cox.net
For random complex numbers, perhaps it would be clearer to refer to a "region".
RandomComplex[{0, 5 + 5*I}, 5]
{0.9378211150641933 +
2.4488359963758297*I,
3.2739899054454575 +
4.519996968693475*I,
1.9946657658816749 +
1.3564547704937988*I,
2.246863607357189 +
1.4197001523425845*I,
4.230857992100537 +
1.1462736498223762*I}
RandomComplex[{-5 - 5*I, 5 + 5*I}, 5]
{4.489356645361212 -
4.473926000458439*I,
0.3316263701423452 +
0.7330317793495915*I,
-3.7962075523324117 +
2.5405117415409713*I,
2.0662639944526653 +
3.450702486874583*I,
1.191807357128308 -
3.302582278065998*I}
Bob Hanlon
---- Bill Rowe <readnewsciv at sbcglobal.net> wrote:
> On 8/12/07 at 7:24 AM, akoz at mimuw.edu.pl (Andrzej Kozlowski) wrote:
>
> >Here is a extract from the documentation for RandomComplex:
>
> >"RandomComplex[range,n] gives a list of n pseudorandom complex
> >numbers."
>
> >and now here is an extract from tutorial/RandomNumberGeneration:
>
> >"RandomComplex[domain,n] gives a list of n pseudorandom reals"
>
> >???
>
> Given:
>
> In[1]:= RandomComplex[{0, 1}, 5]
>
> Out[1]= {0.031873580468932516 + 0. \[ImaginaryI],
> 0.5275216955764901 + 0. \[ImaginaryI],
> 0.665414621684336 + 0. \[ImaginaryI],
> 0.11248161136844037 + 0. \[ImaginaryI],
> 0.3548022392621708 + 0. \[ImaginaryI]}
>
> In[2]:= $Version
>
> Out[2]= 6.0 for Mac OS X PowerPC (32-bit) (June 19, 2007)
>
> I conclude there is simply an error in the tutorial
> --
> To reply via email subtract one hundred and four
>