Language Basics
Squiggle supports some simple types and language features.
Numbers
4.32
Distributions
There are several ways of easily entering distributions. See the documentation on distributions for a complete API.
Lists
Squiggle lists can accept items of any type, similar to those in Python. API.
4
true
Dictionaries
Squiggle dictionaries work similarly to Python dictionaries. API.
Functions
function(t)
Conditionals
10
Anonymous Functions
function(t)
Comments
""
Pipes
Squiggle features data-first pipes. Functions in the standard library are organized to make this convenient.
Standard Library
Squiggle features a simple standard libary.
Most functions are namespaced under their respective types to keep functionality distinct. Certain popular functions are usable without their namespaces.
For example,
""
Number Suffixes
Numbers support a few scientific notation suffixes.
suffix | multiplier |
---|---|
n | 10^-9 |
m | 10^-3 |
k | 10^3 |
M | 10^6 |
B,G | 10^9 |
T | 10^12 |
P | 10^15 |