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

frecendebt #113

Merged
merged 2 commits into from Oct 23, 2018
Merged

frecendebt #113

merged 2 commits into from Oct 23, 2018

Conversation

hannes-dev
Copy link
Contributor

No description provided.

self.save
end

def multiplier
Math.atan(self.balance / 10) + (Math::PI / 2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the Math::PI / 2?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes the result of Math.atan positive.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the /10? As atan is a monotonic function this will not change the order. (Same for the Math::PI/2, but it's nice to keep things positive.)

@rien rien merged commit a3e8945 into master Oct 23, 2018
@redfast00 redfast00 deleted the feature/frecendebt branch December 30, 2018 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants