List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] random numbers
| [MUG] random numbers |
|
Author: Zaifu Zhang
Posted: 27/09/2000 03:59:43 GDT
|
>> From: Zaifu Zhang
Does anybody know why the command
>stats[random, lognormal[0,1]](10);
sometimes run, sometimes doesn't?
_______________________________________________________________________
Free Unlimited Internet Access! Try it now!
http://www.zdnet.com/downloads/altavista/index.html
_______________________________________________________________________
|
| [MUG] Re: random numbers |
|
Author: Maple Group
Posted: 06/10/2000 14:57:55 GDT
|
>> From: Maple Group
>>>> From: Zaifu Zhang
| Does anybody know why the command
| >stats[random, lognormal[0,1]](10);
| sometimes run, sometimes doesn't?
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
From: "Willard, Daniel Dr DUSA-OR"
To:
Subject: random numbers
Date: Wed, 27 Sep 2000 16:46:39 -0400
It may depend on whether you are using MapleV Rel 5 or Maple6. With 5, try:
>with(stats);
>statevalf[pdf,lognormal[0,1]](10);
Alternately, without the first line,
>stats[statevalf,pdf,lognormal[0,1]](10);
is a possible answer, too. But maybe you want the cdf?
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Wed, 27 Sep 2000 23:05:20 -0700 (PDT)
From: "Jason C. Leach"
To:
Subject: random numbers
hi,
I can confirm that. For me it works every 3-4 time on average.
j
......................
..... Jason C. Leach
... University College of the Cariboo.
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Thu, 28 Sep 2000 16:15:16 -0700 (PDT)
From: Robert Israel
To:
Subject: random numbers
It seems to run into trouble with the fact that the lognormal
random variable must be positive. Of course a work-around is
to get a lognormal[0,1] random variable as exp of a normal[0,1]
random variable.
Robert Israel
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
|
Previous by date: [MUG] maple<->matlab?, Rouben Rostamian
Next by date: [MUG] Re: Missing plot graphics, Maple Group
Previous thread: [MUG] 10 digit number Maple can't factor, Ken W Smith
Next thread: [MUG] Missing plot graphics, Pete
|