The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
A simple ipow(X, N) function may be written that requires a maximum of 2*log2[N] multiplications (may be off-by-one), and a possible division (if N was negative). If all N are known, it is possible to optimize ipow() even further, by writing custom code for each power.
For summation of polynomials, note that there are special cases where the Horner polynomial calculation may be optimized:
Thanks for the edits - after checking out the link to Wikipedia, I have finally got my head around the whole thing.
The only thing that would concern me is the potential loss of accuracy. The whole of my calculation is based on numerous polynomials, and some have already been truncated in the interests of speed.
At present, I am getting a 95% hit rate of 6" of arc, and 99% of 12" of arc when compared to results from the full rigorous approach. As 1' of arc is one Nautical mile in Longitude (or on the equator) this is acceptable, bearing in mind that I do all my sailing at latitudes of about 35° North, where the NM subtends more than 1' of Latitude. What it means is that the final positional accuracy is purely down to the skill of the sextant operator - an error of 1" of time is equivalent to 15" of arc, or 1/4 NM.
I was first going to use 'Xamarinade' as in soaked in Xamarin, but as this is my first venture into this technology, I thought it more appropriate to terminate the word in the way the terminator terminated things.
Anything that is unrelated to elephants is irrelephant Anonymous - The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 - I'd just like a chance to prove that money can't make me happy. Me, all the time
I could hardly make it through the whole movie, I was so disappointed. So much hype for so long delivering almost nothing and... spoiler alert... they kill Han Solo for no good reason and not even in any spectacular way! I suspect Harrison Ford looked at the script and said, "Enough! I can't do this cr*p! Kill me now!" - so they did.
- I would love to change the world, but they won’t give me the source code.