From 8aa68113784b7917cce3c305163d6836893018b0 Mon Sep 17 00:00:00 2001 From: Alfred Xing Date: Fri, 27 Mar 2015 08:49:45 -0700 Subject: [PATCH] Update docs to reflect addition of history operator --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a60f2d4..9f736a9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,10 @@ This is probably the mode you'll want to use. It's like the `python` shell or `i -15 > 3pi^2 29.608813203268074 +> @+1 +30.608813203268074 +> @@@*2 +-30 > ln(-1) NaN ``` @@ -46,6 +50,9 @@ calc supports all the standard stuff, and I'm definitely adding more later (also ##### Constants `e`, `pi`, `π` +##### History +Previous results can be accessed with the `@` symbol. A single `@` returns the result of the last computation, while multiple `@` gets the nth last result, where n is the number of `@`s used (for example, `@@` returns the second-last result, `@@@@@` returns the fifth-last result). + ### Why not use ...? - Google - Doesn't work without an internet connection