Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Roots and powers playing nicely together...
#23
For string math, I would have to write a way to do natural logs by an existing string math process. That's why I avoided this method.

Well, let's have a look at a small numeric piece of code...

Code: (Select All)
PRINT Log10(64)
FUNCTION Log10# (value AS DOUBLE) STATIC
    Log10# = LOG(value) / LOG(10.#)
END FUNCTION

So the question would be when does the numeric log function crap out and where is the point where the accuracy is in question? It is usually the last digit but rounding errors can make a mess of that, too.

Pete
Shoot first and shoot people who ask questions, later.
Reply


Messages In This Thread
RE: Roots and powers playing nicely together... - by Pete - 10-01-2022, 12:41 AM



Users browsing this thread: 1 Guest(s)