Ran formatting

This commit is contained in:
Ozzie Gooen 2022-07-23 11:41:12 -07:00
parent ff1f8e8e84
commit 8414cde819
7 changed files with 26 additions and 42 deletions

View File

@ -87,15 +87,11 @@ A projection over a stretched x-axis.
log(dist)`} log(dist)`}
/> />
<SquiggleEditor <SquiggleEditor defaultCode={`log10(5 to 10)`} />
defaultCode={`log10(5 to 10)`}
/>
Base `x` Base `x`
<SquiggleEditor <SquiggleEditor defaultCode={`log(5 to 10, 2)`} />
defaultCode={`log(5 to 10, 2)`}
/>
#### Validity #### Validity
@ -110,36 +106,25 @@ For every point on the x-axis, operate the corresponding points in the y axis of
TODO: this isn't in the new interpreter/parser yet. TODO: this isn't in the new interpreter/parser yet.
<SquiggleEditor <SquiggleEditor defaultCode={`(1 to 10) .+ triangular(1,2,3)`} />
defaultCode={`(1 to 10) .+ triangular(1,2,3)`}
/>
### Pointwise subtraction ### Pointwise subtraction
TODO: this isn't in the new interpreter/parser yet. TODO: this isn't in the new interpreter/parser yet.
<SquiggleEditor <SquiggleEditor defaultCode={`(1 to 10) .- triangular(1,2,3)`} />
defaultCode={`(1 to 10) .- triangular(1,2,3)`}
/>
### Pointwise multiplication ### Pointwise multiplication
<SquiggleEditor <SquiggleEditor defaultCode={`(1 to 10) .* triangular(1,2,3)`} />
defaultCode={`(1 to 10) .* triangular(1,2,3)`}
/>
### Pointwise division ### Pointwise division
<SquiggleEditor <SquiggleEditor defaultCode={`(uniform(0,10)) ./ normal(10,4)`} />
defaultCode={`(uniform(0,10)) ./ normal(10,4)`}
/>
### Pointwise exponentiation ### Pointwise exponentiation
<SquiggleEditor <SquiggleEditor defaultCode={`(1 to 10) .^ triangular(1,2,3)`} />
defaultCode={`(1 to 10) .^ triangular(1,2,3)`}
/>
## Standard functions on distributions ## Standard functions on distributions

View File

@ -13,11 +13,13 @@ import { SquiggleEditor } from "../../src/components/SquiggleEditor";
### Distributions ### Distributions
<SquiggleEditor defaultCode={`a = normal(4,2) <SquiggleEditor
defaultCode={`a = normal(4,2)
b = 30 to 50 b = 30 to 50
c = lognormal({mean:90, stdev: 7}) c = lognormal({mean:90, stdev: 7})
d = mixture(a,b,c, [0.3, 0.3, .4]) d = mixture(a,b,c, [0.3, 0.3, .4])
{a:a, b:b, c:c, d:d}`} /> {a:a, b:b, c:c, d:d}`}
/>
### Lists ### Lists
@ -25,9 +27,7 @@ d = mixture(a,b,c, [0.3, 0.3, .4])
defaultCode={`[beta(1,10), 4, isNormalized(SampleSet.fromDist(1 to 2))]`} defaultCode={`[beta(1,10), 4, isNormalized(SampleSet.fromDist(1 to 2))]`}
/> />
<SquiggleEditor <SquiggleEditor defaultCode={`List.make(5,1)`} />
defaultCode={`List.make(5,1)`}
/>
### Dictionaries ### Dictionaries
@ -43,12 +43,9 @@ d.dist`}
f`} f`}
/> />
### Anonymous Functions ### Anonymous Functions
<SquiggleEditor <SquiggleEditor defaultCode={`{|t| normal(t^2, t^1.2+.01)}`} />
defaultCode={`{|t| normal(t^2, t^1.2+.01)}`}
/>
## See more ## See more

View File

@ -8,11 +8,13 @@ Squiggle is a simple programming language for intuitive probabilistic estimation
The basics of Squiggle can be pretty simple and intuitive. The more advanced functionality can take some time to learn. The basics of Squiggle can be pretty simple and intuitive. The more advanced functionality can take some time to learn.
## What Squiggle Is ## What Squiggle Is
- A simple programming language for doing math with probability distributions - A simple programming language for doing math with probability distributions
- An embeddable language that can be used in Javascript applications - An embeddable language that can be used in Javascript applications
- A tool to embed functions as forecasts that can be embedded in other applications - A tool to embed functions as forecasts that can be embedded in other applications
## What Squiggle Is Not ## What Squiggle Is Not
- A complete replacement for enterprise Risk Analysis tools (See Crystal Ball, @Risk, Lumina Analytica) - A complete replacement for enterprise Risk Analysis tools (See Crystal Ball, @Risk, Lumina Analytica)
- A Probabilistic Programming Language with backwards inference and sophisticated sampling algorithms. (See [PPLs](https://en.wikipedia.org/wiki/Probabilistic_programming)) - A Probabilistic Programming Language with backwards inference and sophisticated sampling algorithms. (See [PPLs](https://en.wikipedia.org/wiki/Probabilistic_programming))
- A visual tool aimed at casual users (see Guesstimate, Causal) - A visual tool aimed at casual users (see Guesstimate, Causal)

View File

@ -10,7 +10,8 @@ const path = require("path");
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
title: "Squiggle", title: "Squiggle",
tagline: "A simple programming language for intuitive probabilistic estimation", tagline:
"A simple programming language for intuitive probabilistic estimation",
url: "https://squiggle-language.com", url: "https://squiggle-language.com",
baseUrl: "/", baseUrl: "/",
onBrokenLinks: "throw", onBrokenLinks: "throw",

View File

@ -4,7 +4,7 @@
* work well for content-centric websites. * work well for content-centric websites.
*/ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Lato:wght@100;400;700;900&family=Lora:wght@400;500;600&display=swap'); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Lato:wght@100;400;700;900&family=Lora:wght@400;500;600&display=swap");
/* You can override the default Infima variables here. */ /* You can override the default Infima variables here. */
:root { :root {
@ -79,7 +79,8 @@ h2 {
font-weight: 600; font-weight: 600;
} }
.menu__link, .navbar__item { .menu__link,
.navbar__item {
font-family: "Lora", serif; font-family: "Lora", serif;
} }

View File

@ -12,9 +12,7 @@ function HomepageHeader() {
<header className={clsx("hero hero--primary", styles.heroBanner)}> <header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container"> <div className="container">
<h1 className="hero__title">{siteConfig.title}</h1> <h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle"> <p className="hero__subtitle">Early Access</p>
Early Access
</p>
<p className="hero__subtitle2">{siteConfig.tagline}</p> <p className="hero__subtitle2">{siteConfig.tagline}</p>
</div> </div>
</header> </header>

View File

@ -8,7 +8,7 @@
text-align: center; text-align: center;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
background: rgb(255, 246, 237) background: rgb(255, 246, 237);
} }
@media screen and (max-width: 966px) { @media screen and (max-width: 966px) {