Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program to calculate the logarithm (log 10) of a number > 1
#2
Again, way too slow, just use the mathematical functions that are already available to you.

You have a number n#, must be > 0
The answer is then b# = LOG(n#) / LOG(10)

Done. No need for loops with stepsize 0.00001.
Reply


Messages In This Thread
Re: Program to calculate the logarithm (log 10) of a number > 1 - by Neo - 09-28-2008, 02:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)