PaddiM8 / kalker

Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
https://kalker.xyz
MIT License
1.59k stars 70 forks source link

Remember last result? #6

Closed DianaNites closed 4 years ago

DianaNites commented 4 years ago

It'd be neat if it remembered the previous result, so that this would work

>> 1 + 1
2
>> + 1
3

Or, probably simpler, store it automatically in a _ variable. Pythons REPL does this, for example.

>> 1 + 1
2
>> _ + 1
3
PaddiM8 commented 4 years ago

Ah yes, I will absolutely do this when I have time!

PaddiM8 commented 4 years ago

This should work now, I just pushed it to master! I chose to call it ans.