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)`}
/>
<SquiggleEditor
defaultCode={`log10(5 to 10)`}
/>
<SquiggleEditor defaultCode={`log10(5 to 10)`} />
Base `x`
<SquiggleEditor
defaultCode={`log(5 to 10, 2)`}
/>
<SquiggleEditor defaultCode={`log(5 to 10, 2)`} />
#### 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.
<SquiggleEditor
defaultCode={`(1 to 10) .+ triangular(1,2,3)`}
/>
<SquiggleEditor defaultCode={`(1 to 10) .+ triangular(1,2,3)`} />
### Pointwise subtraction
TODO: this isn't in the new interpreter/parser yet.
<SquiggleEditor
defaultCode={`(1 to 10) .- triangular(1,2,3)`}
/>
<SquiggleEditor defaultCode={`(1 to 10) .- triangular(1,2,3)`} />
### Pointwise multiplication
<SquiggleEditor
defaultCode={`(1 to 10) .* triangular(1,2,3)`}
/>
<SquiggleEditor defaultCode={`(1 to 10) .* triangular(1,2,3)`} />
### Pointwise division
<SquiggleEditor
defaultCode={`(uniform(0,10)) ./ normal(10,4)`}
/>
<SquiggleEditor defaultCode={`(uniform(0,10)) ./ normal(10,4)`} />
### Pointwise exponentiation
<SquiggleEditor
defaultCode={`(1 to 10) .^ triangular(1,2,3)`}
/>
<SquiggleEditor defaultCode={`(1 to 10) .^ triangular(1,2,3)`} />
## Standard functions on distributions

View File

@ -13,11 +13,13 @@ import { SquiggleEditor } from "../../src/components/SquiggleEditor";
### Distributions
<SquiggleEditor defaultCode={`a = normal(4,2)
<SquiggleEditor
defaultCode={`a = normal(4,2)
b = 30 to 50
c = lognormal({mean:90, stdev: 7})
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
@ -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))]`}
/>
<SquiggleEditor
defaultCode={`List.make(5,1)`}
/>
<SquiggleEditor defaultCode={`List.make(5,1)`} />
### Dictionaries
@ -43,12 +43,9 @@ d.dist`}
f`}
/>
### Anonymous Functions
<SquiggleEditor
defaultCode={`{|t| normal(t^2, t^1.2+.01)}`}
/>
<SquiggleEditor defaultCode={`{|t| normal(t^2, t^1.2+.01)}`} />
## 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.
## What Squiggle Is
- A simple programming language for doing math with probability distributions
- An embeddable language that can be used in Javascript applications
- A tool to embed functions as forecasts that can be embedded in other applications
## What Squiggle Is Not
- 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 visual tool aimed at casual users (see Guesstimate, Causal)

View File

@ -10,7 +10,8 @@ const path = require("path");
/** @type {import('@docusaurus/types').Config} */
const config = {
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",
baseUrl: "/",
onBrokenLinks: "throw",

View File

@ -4,7 +4,7 @@
* 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. */
:root {
@ -40,7 +40,7 @@ html[data-theme="dark"] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}
.hero h1{
.hero h1 {
font-size: 4em;
font-weight: 900;
margin-bottom: 0.5rem;
@ -56,7 +56,7 @@ html[data-theme="dark"] .docusaurus-highlight-code-line {
.hero__subtitle {
color: #888;
font-size:1.25em;
font-size: 1.25em;
}
.hero__subtitle2 {
@ -79,7 +79,8 @@ h2 {
font-weight: 600;
}
.menu__link, .navbar__item {
.menu__link,
.navbar__item {
font-family: "Lora", serif;
}

View File

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

View File

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