Numbers support a few scientific notation suffixes.
There's no difference between floats and integers in Squiggle.
Booleans can be
Strings can be created with either single or double quotes.
Distributions are first-class citizens. Use the syntax
a to b to create a quick lognormal distribution, or write out the whole distribution name.
See these pages for more information on distributions:
There are 3 internal representation formats for distributions: Sample Set, Point Set, and Symbolic. By default, Squiggle will use sample set distributions, which allow for correlations between parameters. Point Set and Symbolic distributions will be more accurate and fast, but do not support correlations. If you prefer this tradeoff, you can manually use them by adding a
Sym. before the distribution name, i.e.
Squiggle lists can contain items of any type, similar to lists in Python. You can access individual list elements with
[number] notation, starting from
Squiggle is an immutable language, so you cannot modify lists in-place. Instead, you can use functions such as
List.reduce to create new lists.
Other Squiggle types include: