2
votes
2answers
24 views

How to implement a numerically stable solution of a quadratic equation?

Solving $a x^2 + bx +c=0$ for $x$ gives $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$ for $a \ne 0$. But for $a = 0$ we get $x=-\frac{c}{b}$. How to implement a numerically stable algorithm computing ...
1
vote
1answer
53 views

how to solve these two quadratic equations

Can someone help me find the solution for these two quadratic equations ? $ 2(z^2) \ - \ 3.023bz \ + \ 0.115(b^2) \ + \ 2.0814b \ + \ 0.142z \ - \ 0.5856 \ = \ 0 $ $ 6.0828(z^2) \ + \ 2.0414bz \ + \ ...
3
votes
1answer
440 views

Given a cubic function, and its quadratic derivative- can I recover the cubic from quadratic?

Background: I'm trying to learn how to work with cubic and quadratic bezier splines for various drawing libraries, and working through how to approximate a cubic spline with a quadratic spline. It's ...