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

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}")