Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newton had a fun way to approximate general roots...
#23
(09-15-2022, 09:14 PM)Pete Wrote: I think I saw that formula when I was search around online. I couldn't use it, because I have not yet created a decimal power algorithm in my string math routines. For instance  input 2 as the root and 16 as the number: The equation 1 / 2 = .5. Raising x ^.5 is not in my routines yet.

I may need to find a method to calculate decimal powers soon, but that method would have to be based on */+-. No logs.

Thanks for posting this, as it is great for small numbers. Very efficient!

Pete

The formula comes from here: Quick Basic: Mathematische Funktionen

I entered the 16th root of base 2. The result is correct - of course, if you check it, you get the usual inaccuracy: 1.99... instead of 2.

[Image: n-te-Wurzel-2-2022-09-15.jpg]
Reply


Messages In This Thread
RE: Newton had a fun way to approximate general roots... - by Kernelpanic - 09-15-2022, 09:47 PM



Users browsing this thread: 6 Guest(s)