Rand Stats

App::Crag

zef:librasteve

raku App::Crag

calculator using raku grammars for the command line

NB. The syntax for measures changed from :<...> to ^<...> to clashes with the colon

Install

zef install --verbose App::Crag

Usage

crag [--help] <cmd>

Examples

[1] > crag 'say (1.6km / (60 * 60 * 1s)).in: <mph>'               #0.99mph
[2] > crag '$m=95kg; $a=^<9.81 m/s^2>; $f=$m*$a; say $f'          #931.95N
[3] > crag 'say ^<12.5 ft ±3%> .in: <mm>'                         #3810mm ±114.3
[4] > crag '$λ=2.5nm; $ν=c/$λ; say $ν.norm'                       #119.91PHz
[5] > crag '$c=^<37 °C>; $f=^<98.6 °F>; say $f cmp $c'            #Same
[6] > crag 'say @physics-constants-symbols.join: "\n"'            # ...

More Info

copyright(c) 2023-2024 Henley Cloud Consulting Ltd.