Re: Solution from Reduce as boundaries for Distribution
- To: mathgroup at smc.vnet.net
- Subject: [mg60018] Re: Solution from Reduce as boundaries for Distribution
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sun, 28 Aug 2005 23:14:31 -0400 (EDT)
- Organization: The Open University, Milton Keynes, U.K.
- References: <dernnq$s1o$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
kristoph wrote:
> I started useing Mathematica just recently and can't solve the
> following problem:
> I'de like to solve the following equation for 0<=x<=1:
> 15/16+x-Mod[15/16+x,1/2]==1 I did this with Reduce[expr.&&0<=x<=1,x].
> Solution: 1/16<=x<9/16. So far so good.
> For further calculations I need the boundaries of the above solution in
> an UniformDistribution, therefore UniformDistribution[1/16,9/16]. I
> have absoulutly no idea how to do this. Thanks very much for help.
>
Is this what you are looking for?
In[1]:=
Needs["Statistics`ContinuousDistributions`"]
In[2]:=
data = RandomArray[UniformDistribution[1/16, 9/16], 10]
Out[2]=
{0.236291,0.352098,0.25233,0.513641,0.178855,0.554297,0.243679,0.441267,0.\
214397,0.549215}
Best regards,
/J.M.