Re: calculating an exponent?

From: Paul Lutus (nospam_at_nosite.zzz)
Date: 09/28/04


Date: Tue, 28 Sep 2004 10:16:09 -0700

Jani Yusef wrote:

/ ...

> Hmmm, thats interesting but I am still confused as to how this is done?
> Suppose I want to calculate 2^5 , for example. What would the
> calculation look like. Would it be broken down first into
> 2*(2*2)*(2*2) ors omething like that? How is that different then, say,
> and even exponent? Sorry for all the questions but I really don't
> understand this at all.

How do you multiply two numbers together? Through a process of addition and
bit shifting (the second is optional if you are willing to wait a long time
for the result). How do you compute a power? By multiplying (or by
computing a logarithm or two).

All these esoteric mathematical operations are expansions of addition and
bit shifting.

-- 
Paul Lutus
http://www.arachnoid.com


Relevant Pages

  • Re: Rounding a Rounded Number
    ... The calculation is payroll related and I need to round the first reponse ... before multiplying again. ... "Don Guillett" wrote: ...
    (microsoft.public.excel.programming)
  • Re: The Clue Lies In The Word "Defined"
    ... Dead Paul wrote: ... multiplying the Bel by ten the newly defined unit must ... hand side is the number of db's defined by the calculation on the right ...
    (uk.radio.amateur)
  • Calculation bug or is it me
    ... what am I missing here. ... Using XL2K3 XP, no problems with my computer, trying to divide a series of ... numbers by 100, then multiplying that quotient by 100, and getting illogical ... The problem is I need to do this calculation programmatically and the result ...
    (microsoft.public.excel.programming)
  • Re: The Clue Lies In The Word "Defined"
    ... multiplying the Bel by ten the newly defined unit must ... of calculated value or amount of. ... hand side is the number of db's defined by the calculation on the right ...
    (uk.radio.amateur)
  • Re: Rounding a Rounded Number
    ... The calculation is payroll related and I need to round the first reponse ... before multiplying again. ... I am getting $7.28 in VBA. ...
    (microsoft.public.excel.programming)