> There is no need to compute pow(E, result) twice. Yes, that is small thing that fixing would probably increase the efficiency, I just didn’t get my thought process there while making the tutorial. Thanks for the feedback :)
> pow should not be used, not to say inside while loop. Also, implementation of > pow often calls log internally. Could please explain the first part more? And the second part is inevitable when I can’t read or find c source code very well. The main reason I created this was to do things outside of C. For 2, 4 and 5 the goal of this tutorial is not how to calculate logBASE **fast** , I’d just prefer if it was **not slow**. I prefer it to be clean, and my method makes more sense to be in general than any of the other binary stuff. I can’t be teaching others what I can’t wrap my own head around, although I do agree I should eventually learn this kind of stuff. Also, for number 5 afaik that is a log2 proc, not a logBASE and wondering if it could give the same speed and accuracy for other bases?