rpncalc:rpn 计算器

[撰文/hmy]

rpn 代表逆波兰式,具体含义可以搜索下。主要的运算思想把数字和运算符号先入栈,然后再出栈进行运算。有点是可以记录每一步运算的结果。linux 上有很多 rpn 运算器,我常用的是 rpncalc,非常好用。

rpncalc

更详细的内容参考这个网页:

http://www.linuxfocus.org/ChineseGB/January2004/article319.shtml

Read More:

  • No related posts

10 Comments

  1. 1 TTG Commented @ 2008-09-06 9:37Reply to this comment

    这个逆波兰式真是好玩啊。

  2. 2 hmy Commented @ 2008-09-06 10:10Reply to this comment

    @TTG 不只好玩,呵呵,很实用

  3. 3 LanEast Commented @ 2008-09-06 10:15Reply to this comment

    以前只知道个 dc, 还不会用, 不过现在也还是不会用 :D

  4. 4 lovelywcm Commented @ 2008-09-06 10:55Reply to this comment

    我就常在console 下用GNU dc。 习惯了,逆的比顺的好用~。

  5. 5 najja Commented @ 2008-09-06 13:59Reply to this comment

    emacs里有一个很bt的calc包,连irr拉,npr拉什么的都可以算,不过操作很复杂...

    HP12c计算器的饭路过

  6. 6 najja Commented @ 2008-09-06 14:00Reply to this comment

    晕 npr-> npv

  7. 7 普林斯赖 Commented @ 2008-09-06 14:55Reply to this comment

    我还记得K&R C 的书里面还做过一个

  8. 8 shelling Commented @ 2008-09-06 23:03Reply to this comment

    這和直接用 lisp interpreter 有啥不同?

  9. 9 Zer4tul Commented @ 2008-09-07 1:04Reply to this comment

    错别字:"有点"是可以记录每一步运算的结果。

  10. 10 Zer4tul Commented @ 2008-09-07 1:06Reply to this comment

    to shelling:

    最大的不同就是,有很多人不用lisp……比如我