In the Windows console or the Windows PowerShell you can use Hypatia for quick calculations without opening Hypatia and leaving the command line.
(To run Hypatia from the command line, you have to add the path to its program folder to the Windows system path.)
As always, all input is case insensitive.
DO and REPEAT are not allowed.
You can enter a calculation after hy -- for instance,
C:\...>hy 29 :KM
C:\...>= 46.670976
converts 29 miles to km.
Or, if you want to roll a dice, you can enter
C:\...>hy 1 6 RANDINT
and you'll get a random integer number in the range from 1 to 6.
(If you want a loaded dice, you might enter
C:\...>hy 1 8 RANDINT 6 UPLIMIT
and since 7 and 8 would be reduced to 6, the probability for rolling a 6 would be 3 times that of the other numbers.)
The file hy.ini is executed before the calculation is performed, so all variables and user-defined elements are available, and all mode settings are in force.
The calculation has to begin with a number, a variable, or a constant (not with a user-defined element).
Insert files can be used.
You can use command line options in your command line calculation, by writing them before your calculation:
C:\...>hy -d 30 SIN
C:\...>= 0.5
(The option -d sets angle mode to degrees, before the sine of 30 is calculated.)
If an error eccurs in a command line calculation, Hypatia is opened.
Home, Up: Appendix, Prev: Command Line Options, Next: Technical Notes