MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help with Manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131860] Re: Help with Manipulate
  • From: Sergio Miguel Terrazas Porras <sterraza at uacj.mx>
  • Date: Sat, 19 Oct 2013 04:10:56 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20131018084448.7272A6A0D@smc.vnet.net>

It is the last semicolon, which supresses output.

But it has some other problems.

Saludos, Sergio Terrazas

________________________________________
Desde: Eduardo M. A. M. Mendes [emammendes at gmail.com]
Enviado el: viernes, 18 de octubre de 2013 02:44 a.m.
Hasta: mathgroup at smc.vnet.net
Asunto: Help with Manipulate

Hello

Although I have been using Mathematica for a while I still consider myself a rookie.   Could someone explain what I am doing wrong with the following code, please?

Manipulate[
sum=RandomVariate[FRatioDistribution[2,2 \[CurlyPhi]],np];
Do[sum=sum+RandomVariate[FRatioDistribution[2,2 =
\[CurlyPhi]],np],{i,2,nr}];
Histogram[sum,{Min[sum],Max[sum],1},"PDF",AspectRatio->1/3,PlotRange-> {{Min[sum],Max[sum]},All},ImageSize->Large],
{{\[CurlyPhi],5,"parameter"},1,1000, Appearance->"Labeled"},
{{np,1000,"number of data points"},1,1000000, Appearance->"Labeled"},{{nr,20,"number of replications"},5,10000, Appearance->"Labeled"}];

Nothing shows up.

Is there a faster way to implement the summation?

Many many thanks

Ed



  • Prev by Date: Re: Exercise of Programming with Mathematica
  • Next by Date: Re: Help with Manipulate
  • Previous by thread: Help with Manipulate
  • Next by thread: Re: Help with Manipulate