-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Triangular number/ Termial function support #53
Comments
So for the implementation, it should mesh well with the current system, so we need to be able to calculate the to a huge level (and maybe decimal). For that some formulas: For small integers we can use the simple formula: For small decimals we can expand this formula:
For large integers (approximate):
For very large integers (digits):
For too large numbers (tower), don't do anything, it scales by square, so the number of digits doubles, which doesn't even change a decimal. Even if they put a thousand question marks, it would just be a difference of 300, and only if it's just a one layer tower. I'll try to derive a formula for an approximation later, maybe based on sterling's formula. Edit: Tried, don't thinks it's possible or necessary (scales comparatively slowly). Edit2: found a simple one! For the regex it will be some more, the base is simple, but we will need to add multiple chain regexes, their core should be something on the lines of: The task types are going to be pretty straightforward. The result types however are more tricky because of chaining. The I don't know when I will get to it, just wanted to take some notes. |
I don't understand enough math to comment on your formulas. It looks like there's no good approximation formulas out there. If you come up with a good one, it has probably a good chance to be called after you. I also agree regarding the |
Wikipedia: https://en.wikipedia.org/wiki/Triangular_number#Alternative_name
Proposal: https://www.reddit.com/r/unexpectedfactorial/comments/1hyux2u/comment/m6l7eai/
The text was updated successfully, but these errors were encountered: