-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Add solveOrderedRealCubic #177
base: version2
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, asking trey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I don't think you have merge permissions, so I'll just merge this, and you can put in another PR to fix the sorting if you want.
local z2 = coeff * math.cos(theta + math.pi / 6) - A/3 | ||
local solutions = table.create(3) | ||
solutions[1], solutions[2], solutions[3] = z0, z1, z2 | ||
table.sort(solutions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe just use if-statements here.
I'm pretty lost with this git stuff, but I think I the PR is correct now. Here are more details on what I changed
|
I didn't realize I have to use spaces. I've never made a pull request before so I don't know how to change it.