Command line calculator
I often forget to bring my scientific calculator to work. So, more often than not, I end-up using Python’s CLI. Windows built-in calc is good, just not good enough in remembering variables previously assigned. The only trouble is that I sometimes forget to attach a module1 name like math. to a function (known as dot notation). For example,
math.sqrt(ke/Me) instead of just sqrt(ke/Me).
I need to get this in my habit of writing expressions.
Update: Type help(module) or in this case, help(math) on the CLI to see what functions the math module supports.
- This needs to be preceded by an
import modulein CLI, e.g.,import mathonce in the session. [←]
