-
-
Notifications
You must be signed in to change notification settings - Fork 61
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 function to solve quadratic equations #398
Add function to solve quadratic equations #398
Conversation
Since we're returning a string now, might as well implement the function directly in Numbat (as shown in #397 (comment))? |
Also can you change the commit message to "Add function to solve quadratic equations"? |
Either way is fine. Feel free to close this if this isn't something you want to add. |
I'm fine with adding it to Numbat myself (no idea about @sharkdp), it's just that I don't see a good reason to do it via FFI'ing to Rust instead of implementing it directly in |
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.
LGTM, thanks!
You're welcome! |
How about we move this to a module in |
https://github.com/sharkdp/numbat/actions/runs/8424920106/job/23069903095?pr=398#step:8:267 I'm not too sure what caused that, or how to fix it. When I try to reproduce the issue locally I get a different error.
|
book/src/list-functions.md
Outdated
@@ -74,6 +74,7 @@ fn sech(x: Scalar) -> Scalar | |||
fn asech(x: Scalar) -> Scalar | |||
fn csch(x: Scalar) -> Scalar | |||
fn acsch(x: Scalar) -> Scalar | |||
fn quadratic_equation<A2, B2>(a: A2, b: B2, c: B2²/A2) -> String |
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.
Can we please move this to a new algebra section at the bottom of this page?
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.
Sure, let me know if 5c7f33b isn't what you wanted.
section at the bottom of `list-functions.md`
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.
Thank you
You're welcome! |
Thank you for building this really awesome tool, and thank you for building it with Rust. |
Changes are live on numbat.dev |
Thanks! |
You're welcome! |
closes #397.