1. logs and antilogs

I have been looking all over the net for a formula to calculate logs and 
antilogs for any given number, but turned up zip. Can anyone suggest a 
formula?

Kat

new topic     » topic index » view message » categorize

2. Re: logs and antilogs

Kat wrote:

> I have been looking all over the net for a formula to calculate logs and
> antilogs for any given number, but turned up zip. Can anyone suggest a
> formula?

I'm not sure if it got you right, maybe this is what you are looking
for:


type positive_not_1 (object x)
   if atom(x) and x > 0 then
      return x != 1
   end if
   return 0
end type


global function log_any (positive_not_1 b, object x)
   -- general log() function
   -- logarithm for base b and number (or sequence) x
   -- in : b: real number > 0 and != 1
   --      x: real number > 0 (or sequence of such numbers)
   -- out: real number

   return log(x)/log(b)
end function

? log_any(2, 32)


Regards,
   Juergen

new topic     » goto parent     » topic index » view message » categorize

3. Re: logs and antilogs

On 27 Oct 2002, at 1:59, Juergen Luethje wrote:

> 
> Kat wrote:
> 
> > I have been looking all over the net for a formula to calculate logs and
> > antilogs for any given number, but turned up zip. Can anyone suggest a
> > formula?
> 
> I'm not sure if it got you right, maybe this is what you are looking
> for:
> 
> 
> type positive_not_1 (object x)
>    if atom(x) and x > 0 then
>       return x != 1
>    end if
>    return 0
> end type
> 
> 
> global function log_any (positive_not_1 b, object x)
>    -- general log() function
>    -- logarithm for base b and number (or sequence) x
>    -- in : b: real number > 0 and != 1
>    --      x: real number > 0 (or sequence of such numbers)
>    -- out: real number
> 
>    return log(x)/log(b)

Ok, what code is behind that line? What does log() do? I know what 
logarithms are, and how to use them, i was using them back in 1969. But 
they were in a table in a book. The ones i use now are in my calculators. I 
opened the calculator, but couldn't find them. getlost

Kat

new topic     » goto parent     » topic index » view message » categorize

4. Re: logs and antilogs

Some useful formula can be found there as well as on other pages of this
site:
http://mathworld.wolfram.com/NaturalLogarithm.html

Regards

CChris

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu