fixed /> bug

This commit is contained in:
Quinn Dougherty 2022-04-20 12:26:03 -04:00
parent b9ad87fda7
commit 15ccf876a6

View File

@ -1,5 +1,5 @@
--- ---
title: Functions reference title: "Functions reference"
sidebar_position: 7 sidebar_position: 7
--- ---
@ -62,7 +62,7 @@ and standard deviation, using `lognormalFromMeanAndStdDev`.
The `beta(a, b)` function creates a beta distribution with parameters `a` and `b`: The `beta(a, b)` function creates a beta distribution with parameters `a` and `b`:
<SquiggleEditor initialSquiggleString="beta(20, 20)" /> <SquiggleEditor initialSquiggleString="beta(1e1, 2e1)" />
### Validity ### Validity
@ -75,7 +75,7 @@ The `beta(a, b)` function creates a beta distribution with parameters `a` and `b
The `exponential(rate)` function creates an exponential distribution with the given The `exponential(rate)` function creates an exponential distribution with the given
rate. rate.
<SquiggleEditor initialSquiggleString="exponential(1)" /> <SquiggleEditor initialSquiggleString="exponential(1.11e0)" />
### Validity ### Validity
@ -127,29 +127,29 @@ Using javascript's variable arguments notation, consider `mx(...dists, weights)`
## Addition (horizontal right shift) ## Addition (horizontal right shift)
<SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 + dist2"> <SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 + dist2" />
## Subtraction (horizontal left shift) ## Subtraction (horizontal left shift)
<SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 - dist2"> <SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 - dist2" />
## Multiplication (??) ## Multiplication (??)
<SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 * dist2"> <SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 * dist2" />
## Division (???) ## Division (???)
<SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 / dist2"> <SquiggleEditor initialSquiggleString="dist1 = 1 to 10; dist2 = triangular(1,2,3); dist1 / dist2" />
## Taking the base `e` exponential ## Taking the base `e` exponential
<SquiggleEditor initialSquiggleString="dist = triangular(1,2,3); exp(dist)"> <SquiggleEditor initialSquiggleString="dist = triangular(1,2,3); exp(dist)" />
## Taking the base `e` and base `10` logarithm ## Taking the base `e` and base `10` logarithm
<SquiggleEditor initialSquiggleString="dist = triangular(1,2,3); log(dist)"> <SquiggleEditor initialSquiggleString="dist = triangular(1,2,3); log(dist)" />
<SquiggleEditor initialSquiggleString="dist = beta(1,2); log10(dist)"> <SquiggleEditor initialSquiggleString="dist = beta(1,2); log10(dist)" />
### Validity ### Validity
@ -230,7 +230,7 @@ It is unary when you use an internal hardcoded number of samples
<SquiggleEditor initialSquiggleString="toSampleSet(1e-1 to 1e0)" /> <SquiggleEditor initialSquiggleString="toSampleSet(1e-1 to 1e0)" />
And binary when you provide a number of samples (truncated) And binary when you provide a number of samples (floored)
<SquiggleEditor initialSquiggleString="toSampleSet(1e-1 to 1e0, 1e2)" /> <SquiggleEditor initialSquiggleString="toSampleSet(1e-1 to 1e0, 1e2)" />