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

Possibly Related Threads…
Thread Author Replies Views Last Post
  I advanced my AI to a black jack playing robot. Pete 1 598 04-17-2024, 12:46 AM
Last Post: PhilOfPerth
  Pascal's Triangle and nth roots. Pete 2 882 09-26-2022, 04:15 PM
Last Post: Pete
  Newton had a fun way to approximate general roots... Pete 35 6,369 09-22-2022, 12:38 AM
Last Post: Kernelpanic
  String math: Whole # powers easy, decimal powers!!! Pete 0 520 09-12-2022, 08:58 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)