1 to 10 m # Lognormal (68% CI)
1 .. 10 m # Uniform distribution
1 thru 10 m # Uniform (alternate)
100 +- 5 kg # Normal (mean ± sigma)
100 pm 5 kg # Normal (alternate)
3 of 10 # Beta (3 successes, 10 trials)
3 against 7 # Beta (3 wins, 7 losses)
{365, 366} day # Equal-weighted set
{365: 303, 366: 97} # Weighted set (dict-style)
100 * 10% # Twiddle by ±10%
100 * 0db # Twiddle by factor of 2
100 * -10db # Twiddle by order of magnitude
Scale words on one side of a range expand onto the bare side:
1 to 2 million # 1e6 to 2e6 1 .. 2 billion USD # uniform 1e9 to 2e9 USD 1 +/- 2 million # normal mean 1e6, sigma 2e6
'3.14 # Uniform(3.135, 3.145) '130 # Uniform(125, 135) '130. # Uniform(129.5, 130.5) '1.3e6 m # With units
100 meters as feet # Convert to specific unit x -> km # Alternative syntax 100 miles as SI # Convert to SI base units 98.6 degF as degC # Affine (offset) conversions 1 feet / 1 mm as feet/mm # Keep a dimensionless ratio in compound form 1 feet^3/mm^3 # Powered numerators in compound units
Results are displayed in SI units by default. Ratios of same-dimension
units (e.g. 1 feet / 1 mm) collapse to a dimensionless
number unless you re-express them via as.
calorie, kcal, Cal # Energy (thermochemical; Cal = kcal) parsec, lightyear # Astronomy (aliases: pc, ly, kpc) barn # Cross-section (1e-28 m^2) knot # Speed (nautical mile / hour) atm, hp, kWh # Pressure, power, energy USD, EUR, GBP, JPY, # Currencies (USD is base) CNY, INR, CAD, AUD, CHF, MXN, BRL, KRW
dollars_1960 # $1 in 1960 (also dollars1960) 100 dollars_1960 as USD # present-day equivalent 1 dollars_1980 + 1 dollars_2020 as USD # mixes fine
Years 1913–present, based on annual-average US CPI-U. Anchor is the latest monthly CPI, so "as USD" gives today's purchasing power.
#2026-04-16# # Date literal #2026-04-16T12:30# # With time (optional :ss) #2027-01-01# - #2026-01-01# # Duration (365 day) (#2026-04-17# - #2026-04-16#) as hour # Convert duration to hours
x = 10 to 100 meters y = x * 2 area = x * y
lognormal(1, 100) # Positive values normal(-10, 10) # Any values uniform(0, 1) # Flat distribution outof(7, 10) # Beta for proportions gamma(2, 5) # Shape/scale parameters poisson(5) # Count data (events) exponential(0.5) # Waiting times (rate) binomial(10, 0.5) # n trials, p success
+ - * / ^ # comment
100 'widgets # Use custom unit 1 'widget = 5 kg # Define custom unit 10 'widget # Now equals 50 kg
# Physics c, h, hbar, G, k # Fundamentals M_earth, R_earth # Earth M_sun, AU, ly, pc # Astronomical # Time year, month, day # As distributions seconds_per_year # Exact conversions # Population & Economics world_population # ~8.2 billion us_gdp, world_gdp # With uncertainty us_median_income # Computing cpu_transistors # Modern CPU internet_users google_searches_per_day
Shift+Enter # Run current cell Ctrl/Cmd+Enter # Run all cells Ctrl/Cmd+S # Export as JSON Ctrl/Cmd+O # Import file Ctrl/Cmd+N # New cell Escape # Unfocus cell