Skip to content
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

Update SeriouslyCommands.py -- faster Fibonacci #57

Merged
merged 4 commits into from
Jun 4, 2016

Conversation

kckennylau
Copy link
Contributor

No description provided.

@Mego
Copy link
Owner

Mego commented Jun 4, 2016

Why did you replace the calculated phi value with a constant?

@kckennylau
Copy link
Contributor Author

kckennylau commented Jun 4, 2016

Because the precision is only that far anyway. Replace it back if you like.

@Mego
Copy link
Owner

Mego commented Jun 4, 2016

True, but if somehow the maximum precision went up, calculating it would allow for greater precision than a float constant. Additionally, keeping it as a calculated constant means less magic numbers.

@Mego Mego merged commit 529b63a into Mego:master Jun 4, 2016
@Mego Mego self-assigned this Jun 4, 2016
@kckennylau
Copy link
Contributor Author

If you haven't noticed, I sneaked Lucas number in (per this).

Which key would you assign it to?

@Mego
Copy link
Owner

Mego commented Jun 4, 2016

I haven't decided if I'm going to put Lucas numbers in the standard library or include them in a supplemental library yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants