David Peter 458f51b335 Add imperial volume units 1 gadu atpakaļ
..
name_resolution_error 5760135223 Allow overwriting of constants/functions, closes #149 2 gadi atpakaļ
parse_error d515cde1ff Add support for prefix unary plus operator 2 gadi atpakaļ
runtime_error 1fd298a61b Add test for error(…) 2 gadi atpakaļ
typecheck_error dc1eeeb2ad Rename speed => velocity 2 gadi atpakaļ
acidity.nbt 21b8c86ca4 Fix tests 2 gadi atpakaļ
air_resistance.nbt dc1eeeb2ad Rename speed => velocity 2 gadi atpakaļ
assert_eq_success.nbt ae7be9b3e4 Rename project to Numbat 2 gadi atpakaļ
barometric_formula.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
binomial_coefficient.nbt 6b6d0de3c7 Improve binomial coeffient example using logical operators 1 gadu atpakaļ
body_mass_index.nbt e157883a81 Add examples to the documentation 2 gadi atpakaļ
booleans.nbt 77ec3377d3 Improve 'booleans' example 1 gadu atpakaļ
codata2018_consistency.nbt a559b88ac8 Add CODATA 2018 values of physics constants 1 gadu atpakaļ
consistency_others.nbt 458f51b335 Add imperial volume units 1 gadu atpakaļ
consistency_si.nbt 1645867220 Treat hundred, thousand, … as units 2 gadi atpakaļ
custom_dimensions.nbt 3c4d93af1b Shorthand notation for adding new dimensions, closes #42 2 gadi atpakaļ
datetime_human_tests.nbt c4f000aff5 Allow FFI targets in function references, conversion functions 1 gadu atpakaļ
datetime_tests.nbt e5c5bd96bf Store datetimes with fixed offset 1 gadu atpakaļ
earth_mass.nbt eae4c53fd9 Initial support for multiline statements, see #112 2 gadi atpakaļ
euler_approximation.nbt af0f856958 Add euler approximation example 2 gadi atpakaļ
factorial.nbt b75bdb9c83 Support for recursive functions 2 gadi atpakaļ
flops.nbt 86451742fa Update FLOP example 2 gadi atpakaļ
gcd.nbt d94a3e3a90 Add two more recursive examples 2 gadi atpakaļ
generics.nbt ae7be9b3e4 Rename project to Numbat 2 gadi atpakaļ
hello_world.nbt e8a709684b Add strings to the language, use markup for printing 2 gadi atpakaļ
inter_dot_spacing.nbt 1b214e25b6 Add misc units 2 gadi atpakaļ
kinetic_energy.nbt dc1eeeb2ad Rename speed => velocity 2 gadi atpakaļ
medication_dosage.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
molarity.nbt e157883a81 Add examples to the documentation 2 gadi atpakaļ
musical_note_frequency.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
nested_function_calls.nbt ae7be9b3e4 Rename project to Numbat 2 gadi atpakaļ
numbat_syntax.nbt 96b722e127 Update syntax example to include logical operators 1 gadu atpakaļ
numerical_diff.nbt db3d95d055 Rename 1 gadu atpakaļ
paper_size.nbt 0750043454 Add paper size example 2 gadi atpakaļ
pendulum.nbt a2be63f82d Add short+long aliases for most phys. constants 2 gadi atpakaļ
pipe_flow_rate.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
population_growth.nbt f40f388a0a Add pop. growth example 2 gadi atpakaļ
prelude_tests.nbt 02e8faa39a Fix str_replace implementation 1 gadu atpakaļ
print.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
projectile_motion.nbt dc1eeeb2ad Rename speed => velocity 2 gadi atpakaļ
readme-demo.nbt 551700766a Add demo from README as an example 2 gadi atpakaļ
recipe.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
stopping_distance.nbt dc1eeeb2ad Rename speed => velocity 2 gadi atpakaļ
thermal_conductivity.nbt fda779e476 Add more physical dimensions 2 gadi atpakaļ
time_units.nbt ae7be9b3e4 Rename project to Numbat 2 gadi atpakaļ
unicode.nbt a2be63f82d Add short+long aliases for most phys. constants 2 gadi atpakaļ
what_if_11.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
what_if_158.nbt b3388c6979 Fix another occurrence typo 2 gadi atpakaļ
workhours.nbt d43737c1e6 Use tropical years as 'year' unit 1 gadu atpakaļ
xkcd_2585.nbt deda3fe26c Update examples in book 2 gadi atpakaļ
xkcd_2812.nbt c354c0995f String interpolation with arbitrary sub-expressions! 2 gadi atpakaļ
xkcd_681.nbt a2be63f82d Add short+long aliases for most phys. constants 2 gadi atpakaļ
xkcd_687.nbt deda3fe26c Update examples in book 2 gadi atpakaļ

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