Title: Re: reciprocal without division
Post by: david_uwi on June 06, 2021, 10:22:34 am
I'm an advocate of keeping it simple. These fancy optimization routines are all good using paper and pencil, but a computer is fast and even faster if the calculations required on each iteration are simple. So I present bisection for reciprocals...
Title: Re: reciprocal without division
Post by: jack on June 06, 2021, 11:04:21 am
@david_uwi it doesn't count if you use division, see the thread's title you could change / 2 by * 0.5, but I am willing to bet that my method is both much faster an more accurate try x = 300000000000000#