win-r calc 대신 M-x calc

/emacsian/assets/2016-02-01-calc-mode-basic-00.gif

Win-r calc

가끔 사용하는 계산기. emacs에 계산기 모드가 있다는 얘기를 듣고 버려보려고.

M-x calc

누르고 놀랐다. 윈도우(windows) 계산기 같은 화면을 바랐던 건 아니지만. 이 정도일 줄이야. 뭐가 뭔지 하나도 모르겠다. emacs 답다.

calc manual을 끝까지 읽어보려다 포기. 뭔 기능이 이렇게 많아. 윈도우 계산기를 안 쓸 정도만 간단히 살펴봤다.

Calc normally uses RPN notation. You may be familiar with the RPN system from Hewlett-Packard calculators, FORTH, or PostScript. (Reverse Polish Notation, RPN, is named after the Polish mathematician Jan Lukasiewicz.)

The central component of an RPN calculator is the stack. A calculator stack is like a stack of dishes. New dishes (numbers) are added at the top of the stack, and numbers are normally only removed from the top of the stack.

- 2.1.1 RPN Calculations and the Stack

RPN(Reverse Polish notation)은 postfix notation이다. 5 + ((1 + 2) * 4) - 3 infix 수식을 5 1 2 + 4 * + 3 - RPN 수식으로 표현할 수 있다. 대학생 시절 생각난다. infix, prefix, postfix 바꾸는 프로그램 과제 때문에. 고맙다. emacs. 옛날 생각나게 해줘서. 괄호가 없어서 아름다운 표현이다. 음. 아니. 괄호가 없어서 아름답다고? 그럼 lisp는?

| ^     | calc-power         |
| Q     | calc-sqrt          |
| U     | calc-undo          |
| D     | calc-redo          |
| C-M-i | calc-roll-up       |
| TAB   | calc-roll-down     |
| d 2   | calc-binary-radix  |
| d 0   | calc-decimal-radix |
| d 6   | calc-hex-radix     |

다른 사람은 어디까지 사용할까? 찾아보니 별게 다 되네. 가끔 사용하는 윈도우 계산기를 대체하는데 이 정도 기능만 알면 충분하다. 다른 건 필요할 때, 조금씩 찾아볼 생각이다.

C-x C-s C-x C-c


크리에이티브 커먼즈 라이선스


Published: February 01 2016


Feedback plz <3 @ohyecloudy, ohyecloudy@gmail.com