-
Notifications
You must be signed in to change notification settings - Fork 245
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
Tribonacci #1398
base: main
Are you sure you want to change the base?
Tribonacci #1398
Conversation
@fredrik-johansson Please consider this series of PRs for merging or let me know what is missing. May be this can even go into flint 3? |
Wouldn't it be nicer with a generic k-bonacci |
Hmm, I'm not sure I get your point. Which part of the code do you talk about? Sure, there could be a function which constructs the general polynomial. But this series of PRs implements the constants, which are selected solutions of the corresponding polynomials. (And there even is no closed-form solution for degree 5 up to at least 11, according the the cited reference.) Maybe we could write (for example) a single If this is about the example programs, then, yes, we could merge them or even just include a single one, if at all. They are my test cases used for development. Maybe I miss the obvious point here. In that case, please give more details about what I should change in the code. Thanks. |
By constructing the expression for the explicit solution, you mean expressing the k-bonacci in terms of n-th roots? Isn't the function
The above is, as far as I know, not fully implemented in flint but would be to my mind a better addition. While it is valuable to have concrete examples for illustration and testing purposes, I do not understand what would be the advantage of having these symbolic expressions hard coded for each single constant that someone care about. Note that this is my personal opinion. It does not necessarily reflect the point of view of the of the flint maintainer team. |
Carry over an old PR from Calcium to Flint
flintlib/calcium#42