help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using `eval-expression' for math


From: Lennart Borgman (gmail)
Subject: Re: Using `eval-expression' for math
Date: Thu, 03 Apr 2008 15:53:02 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

reader@newsguy.com wrote:
Can someone show me how to do math with the eval-expression tool?

(+ 2 2) and such simple problems I can do of course but when it comes
to combining things like:

52 * 32 / 12

Trying (* 52 32 ( / 12))
or
        (/  12 ( * 52 32 ))

Goes nowhere fast, and from there I can't really imagine how else to
arrange the parens.

Just think "inner first" and watch for the argument order of course:

  (/ (* 52 32) 12)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]