LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

  • No related posts

rpncalc:rpn 计算器

[撰文/hmy]

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

rpncalc

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

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

署名 • 注明出处 • 非商业性使用

10 Comments

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

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

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

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

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

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

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

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

  5. 5 najja Commented @ 2008-09-06 1:59 pmReply to this comment

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

    HP12c计算器的饭路过

  6. 6 najja Commented @ 2008-09-06 2:00 pmReply to this comment

    晕 npr-> npv

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

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

  8. 8 shelling Commented @ 2008-09-06 11:03 pmReply to this comment

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

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

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

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

    to shelling:

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