Some of the things ive done since the last devlog are:
- refactoring the code
- moved some functions to separate module
mathyy - read json files and use for pattern matching(no more hard-coded patterns)
- Taylor series to approximate e and the natural logarithm
- simpler math implementations like factorials and powers
- New
lnshafeature, calculates the natural log of the sha256 hash of the prorgam(completely useless)
The taylor series were quite problematic, as the more iterations i had, the higher the values in the factorial and power functions got, so sometimes they would overflow to infinity based on the start value, so i had to find a middle ground where the risc of overflowing was low, but it still had resonable precision. Especially for the natural log, which for higher numbers basically just returns a constant of about 10.48.
Ive also discovered some memmory leaks through valgrind, but as i discovered, fixing them breaks everything else, and i dont have the energy to fix it, so i left a comment and moved on
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.