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