diff options
| author | Oleh Prypin <oleh@pryp.in> | 2021-01-20 10:48:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-20 10:48:45 +0100 |
| commit | 6f4309217326430145564ae8b1bb393ea684f39f (patch) | |
| tree | bf4025a5e709426dc927c4afc4fd2286f8450ed9 /tests/examplefiles/gnuplot | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-6f4309217326430145564ae8b1bb393ea684f39f.tar.gz | |
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
Diffstat (limited to 'tests/examplefiles/gnuplot')
| -rw-r--r-- | tests/examplefiles/gnuplot/test.plot | 333 | ||||
| -rw-r--r-- | tests/examplefiles/gnuplot/test.plot.output | 5642 |
2 files changed, 5975 insertions, 0 deletions
diff --git a/tests/examplefiles/gnuplot/test.plot b/tests/examplefiles/gnuplot/test.plot new file mode 100644 index 00000000..cef0f908 --- /dev/null +++ b/tests/examplefiles/gnuplot/test.plot @@ -0,0 +1,333 @@ +# +# $Id: prob2.dem,v 1.9 2006/06/14 03:24:09 sfeam Exp $ +# +# Demo Statistical Approximations version 1.1 +# +# Copyright (c) 1991, Jos van der Woude, jvdwoude@hut.nl + +# History: +# -- --- 1991 Jos van der Woude: 1st version +# 06 Jun 2006 Dan Sebald: Added plot methods for better visual effect. + +print "" +print "" +print "" +print "" +print "" +print "" +print " Statistical Approximations, version 1.1" +print "" +print " Copyright (c) 1991, 1992, Jos van de Woude, jvdwoude@hut.nl" +print "" +print "" +print "" +print "" +print "" +print "" +print "" +print "" +print "" +print "" +print "" +print " NOTE: contains 10 plots and consequently takes some time to run" +print " Press Ctrl-C to exit right now" +print "" +pause -1 " Press Return to start demo ..." + +load "stat.inc" +rnd(x) = floor(x+0.5) +r_xmin = -1 +r_sigma = 4.0 + +# Binomial PDF using normal approximation +n = 25; p = 0.15 +mu = n * p +sigma = sqrt(n * p * (1.0 - p)) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * binom(floor((n+1)*p), n, p) #mode of binomial PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "binomial PDF using normal approximation" +set arrow from mu, 0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot binom(rnd(x), n, p) with histeps, normal(x, mu, sigma) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Binomial PDF using poisson approximation +n = 50; p = 0.1 +mu = n * p +sigma = sqrt(mu) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * binom(floor((n+1)*p), n, p) #mode of binomial PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample (xmax - xmin + 3) +set title "binomial PDF using poisson approximation" +set arrow from mu, 0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot binom(x, n, p) with histeps, poisson(x, mu) with histeps +pause -1 "Hit return to continue" +unset arrow +unset label + +# Geometric PDF using gamma approximation +p = 0.3 +mu = (1.0 - p) / p +sigma = sqrt(mu / p) +lambda = p +rho = 1.0 - p +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * p +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "geometric PDF using gamma approximation" +set arrow from mu, 0 to mu, gmm(mu, rho, lambda) nohead +set arrow from mu, gmm(mu + sigma, rho, lambda) \ + to mu + sigma, gmm(mu + sigma, rho, lambda) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, gmm(mu + sigma, rho, lambda) +plot geometric(rnd(x),p) with histeps, gmm(x, rho, lambda) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Geometric PDF using normal approximation +p = 0.3 +mu = (1.0 - p) / p +sigma = sqrt(mu / p) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * p +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "geometric PDF using normal approximation" +set arrow from mu, 0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot geometric(rnd(x),p) with histeps, normal(x, mu, sigma) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Hypergeometric PDF using binomial approximation +nn = 75; mm = 25; n = 10 +p = real(mm) / nn +mu = n * p +sigma = sqrt(real(nn - n) / (nn - 1.0) * n * p * (1.0 - p)) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * hypgeo(floor(mu), nn, mm, n) #mode of binom PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample (xmax - xmin + 3) +set title "hypergeometric PDF using binomial approximation" +set arrow from mu, 0 to mu, binom(floor(mu), n, p) nohead +set arrow from mu, binom(floor(mu + sigma), n, p) \ + to mu + sigma, binom(floor(mu + sigma), n, p) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, binom(floor(mu + sigma), n, p) +plot hypgeo(x, nn, mm, n) with histeps, binom(x, n, p) with histeps +pause -1 "Hit return to continue" +unset arrow +unset label + +# Hypergeometric PDF using normal approximation +nn = 75; mm = 25; n = 10 +p = real(mm) / nn +mu = n * p +sigma = sqrt(real(nn - n) / (nn - 1.0) * n * p * (1.0 - p)) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * hypgeo(floor(mu), nn, mm, n) #mode of binom PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "hypergeometric PDF using normal approximation" +set arrow from mu, 0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot hypgeo(rnd(x), nn, mm, n) with histeps, normal(x, mu, sigma) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Negative binomial PDF using gamma approximation +r = 8; p = 0.6 +mu = r * (1.0 - p) / p +sigma = sqrt(mu / p) +lambda = p +rho = r * (1.0 - p) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * gmm((rho - 1) / lambda, rho, lambda) #mode of gamma PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "negative binomial PDF using gamma approximation" +set arrow from mu, 0 to mu, gmm(mu, rho, lambda) nohead +set arrow from mu, gmm(mu + sigma, rho, lambda) \ + to mu + sigma, gmm(mu + sigma, rho, lambda) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, gmm(mu + sigma, rho, lambda) +plot negbin(rnd(x), r, p) with histeps, gmm(x, rho, lambda) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Negative binomial PDF using normal approximation +r = 8; p = 0.4 +mu = r * (1.0 - p) / p +sigma = sqrt(mu / p) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * negbin(floor((r-1)*(1-p)/p), r, p) #mode of gamma PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "negative binomial PDF using normal approximation" +set arrow from mu, 0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot negbin(rnd(x), r, p) with histeps, normal(x, mu, sigma) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Normal PDF using logistic approximation +mu = 1.0; sigma = 1.5 +a = mu +lambda = pi / (sqrt(3.0) * sigma) +xmin = mu - r_sigma * sigma +xmax = mu + r_sigma * sigma +ymax = 1.1 * logistic(mu, a, lambda) #mode of logistic PDF used +set key box +unset zeroaxis +set xrange [xmin: xmax] +set yrange [0 : ymax] +set xlabel "x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%.1f" +set format y "%.2f" +set sample 200 +set title "normal PDF using logistic approximation" +set arrow from mu,0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot logistic(x, a, lambda), normal(x, mu, sigma) +pause -1 "Hit return to continue" +unset arrow +unset label + +# Poisson PDF using normal approximation +mu = 5.0 +sigma = sqrt(mu) +xmin = floor(mu - r_sigma * sigma) +xmin = xmin < r_xmin ? r_xmin : xmin +xmax = ceil(mu + r_sigma * sigma) +ymax = 1.1 * poisson(mu, mu) #mode of poisson PDF used +set key box +unset zeroaxis +set xrange [xmin - 1 : xmax + 1] +set yrange [0 : ymax] +set xlabel "k, x ->" +set ylabel "probability density ->" +set ytics 0, ymax / 10.0, ymax +set format x "%2.0f" +set format y "%3.2f" +set sample 200 +set title "poisson PDF using normal approximation" +set arrow from mu, 0 to mu, normal(mu, mu, sigma) nohead +set arrow from mu, normal(mu + sigma, mu, sigma) \ + to mu + sigma, normal(mu + sigma, mu, sigma) nohead +set label "mu" at mu + 0.5, ymax / 10 +set label "sigma" at mu + 0.5 + sigma, normal(mu + sigma, mu, sigma) +plot poisson(rnd(x), mu) with histeps, normal(x, mu, sigma) +pause -1 "Hit return to continue" +reset diff --git a/tests/examplefiles/gnuplot/test.plot.output b/tests/examplefiles/gnuplot/test.plot.output new file mode 100644 index 00000000..2069d54a --- /dev/null +++ b/tests/examplefiles/gnuplot/test.plot.output @@ -0,0 +1,5642 @@ +'#' Comment +'\n' Text + +'#' Comment +' ' Comment +'$' Comment +'I' Comment +'d' Comment +':' Comment +' ' Comment +'p' Comment +'r' Comment +'o' Comment +'b' Comment +'2' Comment +'.' Comment +'d' Comment +'e' Comment +'m' Comment +',' Comment +'v' Comment +' ' Comment +'1' Comment +'.' Comment +'9' Comment +' ' Comment +'2' Comment +'0' Comment +'0' Comment +'6' Comment +'/' Comment +'0' Comment +'6' Comment +'/' Comment +'1' Comment +'4' Comment +' ' Comment +'0' Comment +'3' Comment +':' Comment +'2' Comment +'4' Comment +':' Comment +'0' Comment +'9' Comment +' ' Comment +'s' Comment +'f' Comment +'e' Comment +'a' Comment +'m' Comment +' ' Comment +'E' Comment +'x' Comment +'p' Comment +' ' Comment +'$' Comment +'\n' Text + +'#' Comment +'\n' Text + +'#' Comment +' ' Comment +'D' Comment +'e' Comment +'m' Comment +'o' Comment +' ' Comment +'S' Comment +'t' Comment +'a' Comment +'t' Comment +'i' Comment +'s' Comment +'t' Comment +'i' Comment +'c' Comment +'a' Comment +'l' Comment +' ' Comment +'A' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'s' Comment +' ' Comment +'v' Comment +'e' Comment +'r' Comment +'s' Comment +'i' Comment +'o' Comment +'n' Comment +' ' Comment +'1' Comment +'.' Comment +'1' Comment +'\n' Text + +'#' Comment +'\n' Text + +'#' Comment +' ' Comment +'C' Comment +'o' Comment +'p' Comment +'y' Comment +'r' Comment +'i' Comment +'g' Comment +'h' Comment +'t' Comment +' ' Comment +'(' Comment +'c' Comment +')' Comment +' ' Comment +'1' Comment +'9' Comment +'9' Comment +'1' Comment +',' Comment +' ' Comment +'J' Comment +'o' Comment +'s' Comment +' ' Comment +'v' Comment +'a' Comment +'n' Comment +' ' Comment +'d' Comment +'e' Comment +'r' Comment +' ' Comment +'W' Comment +'o' Comment +'u' Comment +'d' Comment +'e' Comment +',' Comment +' ' Comment +'j' Comment +'v' Comment +'d' Comment +'w' Comment +'o' Comment +'u' Comment +'d' Comment +'e' Comment +'@' Comment +'h' Comment +'u' Comment +'t' Comment +'.' Comment +'n' Comment +'l' Comment +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'H' Comment +'i' Comment +'s' Comment +'t' Comment +'o' Comment +'r' Comment +'y' Comment +':' Comment +'\n' Text + +'#' Comment +' ' Comment +' ' Comment +' ' Comment +' ' Comment +'-' Comment +'-' Comment +' ' Comment +'-' Comment +'-' Comment +'-' Comment +' ' Comment +'1' Comment +'9' Comment +'9' Comment +'1' Comment +' ' Comment +'J' Comment +'o' Comment +'s' Comment +' ' Comment +'v' Comment +'a' Comment +'n' Comment +' ' Comment +'d' Comment +'e' Comment +'r' Comment +' ' Comment +'W' Comment +'o' Comment +'u' Comment +'d' Comment +'e' Comment +':' Comment +' ' Comment +' ' Comment +'1' Comment +'s' Comment +'t' Comment +' ' Comment +'v' Comment +'e' Comment +'r' Comment +'s' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'#' Comment +' ' Comment +' ' Comment +' ' Comment +' ' Comment +'0' Comment +'6' Comment +' ' Comment +'J' Comment +'u' Comment +'n' Comment +' ' Comment +'2' Comment +'0' Comment +'0' Comment +'6' Comment +' ' Comment +'D' Comment +'a' Comment +'n' Comment +' ' Comment +'S' Comment +'e' Comment +'b' Comment +'a' Comment +'l' Comment +'d' Comment +':' Comment +' ' Comment +' ' Comment +'A' Comment +'d' Comment +'d' Comment +'e' Comment +'d' Comment +' ' Comment +'p' Comment +'l' Comment +'o' Comment +'t' Comment +' ' Comment +'m' Comment +'e' Comment +'t' Comment +'h' Comment +'o' Comment +'d' Comment +'s' Comment +' ' Comment +'f' Comment +'o' Comment +'r' Comment +' ' Comment +'b' Comment +'e' Comment +'t' Comment +'t' Comment +'e' Comment +'r' Comment +' ' Comment +'v' Comment +'i' Comment +'s' Comment +'u' Comment +'a' Comment +'l' Comment +' ' Comment +'e' Comment +'f' Comment +'f' Comment +'e' Comment +'c' Comment +'t' Comment +'.' Comment +'\n' Text + +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +' Statistical Approximations, version 1.1' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +' Copyright (c) 1991, 1992, Jos van de Woude, jvdwoude@hut.nl' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +' NOTE: contains 10 plots and consequently takes some time to run' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +' Press Ctrl-C to exit right now' Literal.String +'"' Literal.String +'\n' Text + +'print' Keyword +' ' Text +'"' Literal.String +'"' Literal.String +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +' Press Return to start demo ...' Literal.String +'"' Literal.String +'\n' Text + +'\n' Text + +'load' Keyword +' ' Text +'"' Literal.String +'stat.inc' Literal.String +'"' Literal.String +'\n' Text + +'rnd' Name.Function +'(x) ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'x' Name +'+' Operator +'0.5' Literal.Number.Float +')' Punctuation +'\n' Text + +'r_xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'-1' Literal.Number.Integer +'\n' Text + +'r_sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'4.0' Literal.Number.Float +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'B' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'n' Comment +'o' Comment +'r' Comment +'m' Comment +'a' Comment +'l' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'n' Name.Variable +' ' Text +'=' Operator +' ' Text +'25' Literal.Number.Integer +';' Punctuation +' ' Text +'p' Keyword +' ' Text +'=' Operator +' ' Text +'0.15' Literal.Number.Float +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +' ' Text +'*' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'(' Punctuation +'n' Name +'+' Operator +'1' Literal.Number.Integer +')' Punctuation +'*' Operator +'p' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'binomial PDF using normal approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'binom' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'B' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'p' Comment +'o' Comment +'i' Comment +'s' Comment +'s' Comment +'o' Comment +'n' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'n' Name.Variable +' ' Text +'=' Operator +' ' Text +'50' Literal.Number.Integer +';' Punctuation +' ' Text +'p' Keyword +' ' Text +'=' Operator +' ' Text +'0.1' Literal.Number.Float +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'mu' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'(' Punctuation +'n' Name +'+' Operator +'1' Literal.Number.Integer +')' Punctuation +'*' Operator +'p' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'(' Punctuation +'xmax' Name +' ' Text +'-' Operator +' ' Text +'xmin' Name +' ' Text +'+' Operator +' ' Text +'3' Literal.Number.Integer +')' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'binomial PDF using poisson approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'binom' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'poisson' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'G' Comment +'e' Comment +'o' Comment +'m' Comment +'e' Comment +'t' Comment +'r' Comment +'i' Comment +'c' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'g' Comment +'a' Comment +'m' Comment +'m' Comment +'a' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'p' Keyword +' ' Text +'=' Operator +' ' Text +'0.3' Literal.Number.Float +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'/' Operator +' ' Text +'p' Name +')' Punctuation +'\n' Text + +'lambda' Name.Variable +' ' Text +'=' Operator +' ' Text +'p' Name +'\n' Text + +'rho' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'p' Name +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'geometric PDF using gamma approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'geometric' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'G' Comment +'e' Comment +'o' Comment +'m' Comment +'e' Comment +'t' Comment +'r' Comment +'i' Comment +'c' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'n' Comment +'o' Comment +'r' Comment +'m' Comment +'a' Comment +'l' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'p' Keyword +' ' Text +'=' Operator +' ' Text +'0.3' Literal.Number.Float +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'/' Operator +' ' Text +'p' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'p' Name +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'geometric PDF using normal approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'geometric' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'H' Comment +'y' Comment +'p' Comment +'e' Comment +'r' Comment +'g' Comment +'e' Comment +'o' Comment +'m' Comment +'e' Comment +'t' Comment +'r' Comment +'i' Comment +'c' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'nn' Name.Variable +' ' Text +'=' Operator +' ' Text +'75' Literal.Number.Integer +';' Punctuation +' ' Text +'mm' Name.Variable +' ' Text +'=' Operator +' ' Text +'25' Literal.Number.Integer +';' Punctuation +' ' Text +'n' Name.Variable +' ' Text +'=' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'p' Keyword +' ' Text +'=' Operator +' ' Text +'real' Name.Function +'(' Punctuation +'mm' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'nn' Name +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'real' Name.Function +'(' Punctuation +'nn' Name +' ' Text +'-' Operator +' ' Text +'n' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'(' Punctuation +'nn' Name +' ' Text +'-' Operator +' ' Text +'1.0' Literal.Number.Float +')' Punctuation +' ' Text +'*' Operator +' ' Text +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +' ' Text +'*' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'hypgeo' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'mu' Name +')' Punctuation +',' Operator +' ' Text +'nn' Name +',' Operator +' ' Text +'mm' Name +',' Operator +' ' Text +'n' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'(' Punctuation +'xmax' Name +' ' Text +'-' Operator +' ' Text +'xmin' Name +' ' Text +'+' Operator +' ' Text +'3' Literal.Number.Integer +')' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'hypergeometric PDF using binomial approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'mu' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +')' Punctuation +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'hypgeo' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'nn' Name +',' Operator +' ' Text +'mm' Name +',' Operator +' ' Text +'n' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'binom' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'n' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'H' Comment +'y' Comment +'p' Comment +'e' Comment +'r' Comment +'g' Comment +'e' Comment +'o' Comment +'m' Comment +'e' Comment +'t' Comment +'r' Comment +'i' Comment +'c' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'n' Comment +'o' Comment +'r' Comment +'m' Comment +'a' Comment +'l' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'nn' Name.Variable +' ' Text +'=' Operator +' ' Text +'75' Literal.Number.Integer +';' Punctuation +' ' Text +'mm' Name.Variable +' ' Text +'=' Operator +' ' Text +'25' Literal.Number.Integer +';' Punctuation +' ' Text +'n' Name.Variable +' ' Text +'=' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'p' Keyword +' ' Text +'=' Operator +' ' Text +'real' Name.Function +'(' Punctuation +'mm' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'nn' Name +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'real' Name.Function +'(' Punctuation +'nn' Name +' ' Text +'-' Operator +' ' Text +'n' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'(' Punctuation +'nn' Name +' ' Text +'-' Operator +' ' Text +'1.0' Literal.Number.Float +')' Punctuation +' ' Text +'*' Operator +' ' Text +'n' Name +' ' Text +'*' Operator +' ' Text +'p' Name +' ' Text +'*' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'hypgeo' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'mu' Name +')' Punctuation +',' Operator +' ' Text +'nn' Name +',' Operator +' ' Text +'mm' Name +',' Operator +' ' Text +'n' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'hypergeometric PDF using normal approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'hypgeo' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +' ' Text +'nn' Name +',' Operator +' ' Text +'mm' Name +',' Operator +' ' Text +'n' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'N' Comment +'e' Comment +'g' Comment +'a' Comment +'t' Comment +'i' Comment +'v' Comment +'e' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'g' Comment +'a' Comment +'m' Comment +'m' Comment +'a' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'r' Name.Variable +' ' Text +'=' Operator +' ' Text +'8' Literal.Number.Integer +';' Punctuation +' ' Text +'p' Keyword +' ' Text +'=' Operator +' ' Text +'0.6' Literal.Number.Float +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'r' Name +' ' Text +'*' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'/' Operator +' ' Text +'p' Name +')' Punctuation +'\n' Text + +'lambda' Name.Variable +' ' Text +'=' Operator +' ' Text +'p' Name +'\n' Text + +'rho' Name.Variable +' ' Text +'=' Operator +' ' Text +'r' Name +' ' Text +'*' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'(' Punctuation +'rho' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +')' Punctuation +' ' Text +'/' Operator +' ' Text +'lambda' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'g' Comment +'a' Comment +'m' Comment +'m' Comment +'a' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'negative binomial PDF using gamma approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'negbin' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +' ' Text +'r' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'gmm' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'rho' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'N' Comment +'e' Comment +'g' Comment +'a' Comment +'t' Comment +'i' Comment +'v' Comment +'e' Comment +' ' Comment +'b' Comment +'i' Comment +'n' Comment +'o' Comment +'m' Comment +'i' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'n' Comment +'o' Comment +'r' Comment +'m' Comment +'a' Comment +'l' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'r' Name.Variable +' ' Text +'=' Operator +' ' Text +'8' Literal.Number.Integer +';' Punctuation +' ' Text +'p' Keyword +' ' Text +'=' Operator +' ' Text +'0.4' Literal.Number.Float +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'r' Name +' ' Text +'*' Operator +' ' Text +'(' Punctuation +'1.0' Literal.Number.Float +' ' Text +'-' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'/' Operator +' ' Text +'p' Name +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'/' Operator +' ' Text +'p' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'negbin' Name.Function +'(' Punctuation +'floor' Name.Function +'(' Punctuation +'(' Punctuation +'r' Name +'-1' Literal.Number.Integer +')' Punctuation +'*' Operator +'(' Punctuation +'1' Literal.Number.Integer +'-' Operator +'p' Name +')' Punctuation +'/' Operator +'p' Name +')' Punctuation +',' Operator +' ' Text +'r' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'g' Comment +'a' Comment +'m' Comment +'m' Comment +'a' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'negative binomial PDF using normal approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'negbin' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +' ' Text +'r' Name +',' Operator +' ' Text +'p' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'N' Comment +'o' Comment +'r' Comment +'m' Comment +'a' Comment +'l' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'l' Comment +'o' Comment +'g' Comment +'i' Comment +'s' Comment +'t' Comment +'i' Comment +'c' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.0' Literal.Number.Float +';' Punctuation +' ' Text +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.5' Literal.Number.Float +'\n' Text + +'a' Name.Variable +' ' Text +'=' Operator +' ' Text +'mu' Name +'\n' Text + +'lambda' Name.Variable +' ' Text +'=' Operator +' ' Text +'pi' Name +' ' Text +'/' Operator +' ' Text +'(' Punctuation +'sqrt' Name.Function +'(' Punctuation +'3.0' Literal.Number.Float +')' Punctuation +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'logistic' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'a' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'l' Comment +'o' Comment +'g' Comment +'i' Comment +'s' Comment +'t' Comment +'i' Comment +'c' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +':' Operator +' ' Text +'xmax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%.1f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'normal PDF using logistic approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'logistic' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'a' Name +',' Operator +' ' Text +'lambda' Name +')' Punctuation +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'unset' Keyword +' ' Text +'arrow' Name.Builtin +'\n' Text + +'unset' Keyword +' ' Text +'label' Name.Builtin +'\n' Text + +'\n' Text + +'#' Comment +' ' Comment +'P' Comment +'o' Comment +'i' Comment +'s' Comment +'s' Comment +'o' Comment +'n' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'i' Comment +'n' Comment +'g' Comment +' ' Comment +'n' Comment +'o' Comment +'r' Comment +'m' Comment +'a' Comment +'l' Comment +' ' Comment +'a' Comment +'p' Comment +'p' Comment +'r' Comment +'o' Comment +'x' Comment +'i' Comment +'m' Comment +'a' Comment +'t' Comment +'i' Comment +'o' Comment +'n' Comment +'\n' Text + +'mu' Name.Variable +' ' Text +'=' Operator +' ' Text +'5.0' Literal.Number.Float +'\n' Text + +'sigma' Name.Variable +' ' Text +'=' Operator +' ' Text +'sqrt' Name.Function +'(' Punctuation +'mu' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'floor' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'-' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'xmin' Name.Variable +' ' Text +'=' Operator +' ' Text +'xmin' Name +' ' Text +'<' Operator +' ' Text +'r_xmin' Name +' ' Text +'?' Operator +' ' Text +'r_xmin' Name +' ' Text +':' Operator +' ' Text +'xmin' Name +'\n' Text + +'xmax' Name.Variable +' ' Text +'=' Operator +' ' Text +'ceil' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'r_sigma' Name +' ' Text +'*' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'ymax' Name.Variable +' ' Text +'=' Operator +' ' Text +'1.1' Literal.Number.Float +' ' Text +'*' Operator +' ' Text +'poisson' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +')' Punctuation +' ' Text +'#' Comment +'m' Comment +'o' Comment +'d' Comment +'e' Comment +' ' Comment +'o' Comment +'f' Comment +' ' Comment +'p' Comment +'o' Comment +'i' Comment +'s' Comment +'s' Comment +'o' Comment +'n' Comment +' ' Comment +'P' Comment +'D' Comment +'F' Comment +' ' Comment +'u' Comment +'s' Comment +'e' Comment +'d' Comment +'\n' Text + +'set' Keyword +' ' Text +'key' Name.Builtin +' ' Text +'box' Name +'\n' Text + +'unset' Keyword +' ' Text +'zeroaxis' Name.Builtin +'\n' Text + +'set' Keyword +' ' Text +'xrange' Name.Builtin +' ' Text +'[' Punctuation +'xmin' Name +' ' Text +'-' Operator +' ' Text +'1' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'xmax' Name +' ' Text +'+' Operator +' ' Text +'1' Literal.Number.Integer +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'yrange' Name.Builtin +' ' Text +'[' Punctuation +'0' Literal.Number.Integer +' ' Text +':' Operator +' ' Text +'ymax' Name +']' Punctuation +'\n' Text + +'set' Keyword +' ' Text +'xlabel' Name.Builtin +' ' Text +'"' Literal.String +'k, x ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ylabel' Name.Builtin +' ' Text +'"' Literal.String +'probability density ->' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'ytics' Name.Builtin +' ' Text +'0' Literal.Number.Integer +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10.0' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'x' Name +' ' Text +'"' Literal.String +'%2.0f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'format' Name.Builtin +' ' Text +'y' Name +' ' Text +'"' Literal.String +'%3.2f' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'sample' Name.Builtin +' ' Text +'200' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'title' Name.Builtin +' ' Text +'"' Literal.String +'poisson PDF using normal approximation' Literal.String +'"' Literal.String +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'0' Literal.Number.Integer +' ' Text +'to' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'arrow' Name.Builtin +' ' Text +'from' Name +' ' Text +'mu' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'\\\n' Text + +' ' Text +'to' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +' ' Text +'nohead' Name +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'mu' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +',' Operator +' ' Text +'ymax' Name +' ' Text +'/' Operator +' ' Text +'10' Literal.Number.Integer +'\n' Text + +'set' Keyword +' ' Text +'label' Name.Builtin +' ' Text +'"' Literal.String +'sigma' Literal.String +'"' Literal.String +' ' Text +'at' Name +' ' Text +'mu' Name +' ' Text +'+' Operator +' ' Text +'0.5' Literal.Number.Float +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'mu' Name +' ' Text +'+' Operator +' ' Text +'sigma' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'plot' Keyword +' ' Text +'poisson' Name.Function +'(' Punctuation +'rnd' Name.Function +'(' Punctuation +'x' Name +')' Punctuation +',' Operator +' ' Text +'mu' Name +')' Punctuation +' ' Text +'with' Name.Builtin +' ' Text +'histeps' Name +',' Operator +' ' Text +'normal' Name.Function +'(' Punctuation +'x' Name +',' Operator +' ' Text +'mu' Name +',' Operator +' ' Text +'sigma' Name +')' Punctuation +'\n' Text + +'pause' Keyword +' ' Text +'-1' Literal.Number.Integer +' ' Text +'"' Literal.String +'Hit return to continue' Literal.String +'"' Literal.String +'\n' Text + +'reset' Keyword +'\n' Text |
