David Peter 9073f19d4f Major documentation update 1 year ago
..
name_resolution_error 5760135223 Allow overwriting of constants/functions, closes #149 2 years ago
parse_error bfa32eac73 Change postfix apply to |> 1 year ago
runtime_error 1fd298a61b Add test for error(…) 2 years ago
tests 9073f19d4f Major documentation update 1 year ago
typecheck_error d9de66a365 Comment out failing tests 1 year ago
acidity.nbt 21b8c86ca4 Fix tests 2 years ago
air_resistance.nbt dc1eeeb2ad Rename speed => velocity 2 years ago
barometric_formula.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 years ago
binomial_coefficient.nbt 6b6d0de3c7 Improve binomial coeffient example using logical operators 1 year ago
body_mass_index.nbt e157883a81 Add examples to the documentation 2 years ago
custom_dimensions.nbt 3c4d93af1b Shorthand notation for adding new dimensions, closes #42 2 years ago
earth_mass.nbt eae4c53fd9 Initial support for multiline statements, see #112 2 years ago
euler_approximation.nbt af0f856958 Add euler approximation example 2 years ago
factorial.nbt 9073f19d4f Major documentation update 1 year ago
flops.nbt 86451742fa Update FLOP example 2 years ago
generics.nbt b445d5501b Add type parameters to the type 'AST', check missing Dim constraints 1 year ago
hello_world.nbt e8a709684b Add strings to the language, use markup for printing 2 years ago
inter_dot_spacing.nbt 1b214e25b6 Add misc units 2 years ago
kinetic_energy.nbt dc1eeeb2ad Rename speed => velocity 2 years ago
medication_dosage.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 years ago
molarity.nbt e157883a81 Add examples to the documentation 2 years ago
musical_note_frequency.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 years ago
nested_function_calls.nbt ae7be9b3e4 Rename project to Numbat 2 years ago
numbat_syntax.nbt 2e778bdafd Change syntax to … where … and …, solve remaining tasks 1 year ago
paper_size.nbt 7c398ca363 Fix and extend paper_size example 1 year ago
pendulum.nbt a2be63f82d Add short+long aliases for most phys. constants 2 years ago
pipe_flow_rate.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 years ago
population_growth.nbt 9073f19d4f Major documentation update 1 year ago
print.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 years ago
projectile_motion.nbt dc1eeeb2ad Rename speed => velocity 2 years ago
readme-demo.nbt 551700766a Add demo from README as an example 2 years ago
recipe.nbt b445d5501b Add type parameters to the type 'AST', check missing Dim constraints 1 year ago
stopping_distance.nbt dc1eeeb2ad Rename speed => velocity 2 years ago
thermal_conductivity.nbt fda779e476 Add more physical dimensions 2 years ago
unicode.nbt a2be63f82d Add short+long aliases for most phys. constants 2 years ago
voyager.nbt e3aa7b7230 Add Voyager 1 example 1 year ago
what_if_11.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 years ago
what_if_158.nbt b3388c6979 Fix another occurrence typo 2 years ago
workhours.nbt d43737c1e6 Use tropical years as 'year' unit 1 year ago
xkcd_2585.nbt 9073f19d4f Major documentation update 1 year ago
xkcd_2812.nbt 9073f19d4f Major documentation update 1 year ago
xkcd_681.nbt a2be63f82d Add short+long aliases for most phys. constants 2 years ago
xkcd_687.nbt deda3fe26c Update examples in book 2 years ago

readme-demo.nbt

use units::currencies

8 km / (1 h + 25 min)
140 € -> GBP
atan2(30 cm, 1 m) -> deg
let ω = 2π c / 660 nm
print("Energy of red photon: {ℏ ω -> eV}")