Variables - jbosh/calculator GitHub Wiki

You can use and create variables.
This is as simple as writing the line n=17 then every line following will understand that n is equal to 17.
But don't stop there, n={1;0;1} works also. You can set a variable to any answer you can create.

Built in Variables

These are variables that have default meaning. You can override them with your own, but they can help with some famous constants.

*Note that some of the table values are rounded.

Variable Value Info
G 6.67428E-11 Gravitational constant. Look it up.
g 9.8 Acceleration due to gravity on Earth in m/s/s.
pi 3.14 Pi. You got this.
π 3.14 Holy shit, unicode works too.
e 2.718 Euler's number. Base of natural logarithm.
c 299,792,458 Speed of light in m/s.
x 0 This is for a future expansion of graphing. Doesn't work. Don't hit Ctrl+G.
kb 1024 Explains itself.
mb 1024 * 1024 Wow that's a lot of kilobytes.
gb 1024 * 1024 * 1024 Gigabytes.
k 1000 So you can type 1k instead of 1000
⚠️ **GitHub.com Fallback** ⚠️