How do you calculate?

How do you calculate?

Ehud Karni ehud at unix.mvs.co.il
Thu May 20 19:12:56 IDT 2010


On Thu, 20 May 2010 14:55:23 Nadav Har'El wrote:
>
> For years, I've been wondering: How do other Unix or Linux users do simple
> calculations?

I use my Emacs package compute.el (www.t-e-k.biz/els/compute.el)
for all computations. Since I'm doing everything through Emacs,
it is just 1 keystroke (Alt-C) away.
Bellow are some examples.

Ehud.



Compute: 2/3
      result: 0.666667.

Compute: 2./3
      result: 0.666667.

Compute: 2+3*4+5
      result: 19, \x13.

Compute: (2+3)*4+5
      result: 25, \x19.

Compute: @atan(1)*4
      result: 180, \xb4.

Compute: @d2r(180)
      result: 3.141593.

Compute: 2/3*6
      result: 4, \x4.

Compute: 2/(3*6)
      result: 0.111111.

Compute: 2**10
      result: 1024, \x400.

Compute: A=2**10  A set to 2
      result: 1024, \x400.

Compute: A=(2**10)  A set to 1024
      result: 1024, \x400.

Compute: A=(A/3)  A was 1024    A set to 341.333
      result: 341.333333.

Compute: A=(A/3)  A was 341.333    A set to 113.778
      result: 113.777778.


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7976-561  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry



More information about the Linux-il mailing list