[MWForum]Zehava's Calulator simplified

Zehava Wizman mwforum@lists.mathcats.com
Thu, 29 Jul 2004 14:45:52 +0300


Hi Jeff!
thanks for your quick and simplest  solution, I took your advise and spread 
the functions.
                                                       thanks, Zehava

>From: "Jeff Knope" <jknope@asis.com>
>Reply-To: mwforum@lists.mathcats.com
>To: <mwforum@lists.mathcats.com>
>Subject: [MWForum]Zehava's Calulator simplified
>Date: Wed, 28 Jul 2004 14:36:36 -0700
>
>Hi Zehava,
>
>Actually, there's a little simpler way. In to send instead of doing the 
>second get "display "text, the results of that are already held in :list1. 
>So, the last line of to send may read:
>
>set "display "text (se :list1 " "= " :ans)  Note the spaces following the 
>quote marks and equals sign.
>
>There is no perceptible performance advantage in this, just a little 
>cleaner job.
>
>I notice it has no difficulty handling multiple operators, such as 432 * 
>212 / 87. However, sometimes you need the specify the order of execution. 
>This is done with "(" and ")" strategically placed according to the rules 
>of precedence. A really complete deal would be to add that capability. Come 
>to think of it, there's no reason you couldn't expand the functions to 
>include all the other MW math operations, such a square root, trig 
>functions, etc.
>
>Good luck, --Jeff

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963