\[\frac{\left(-b/2\right) - \sqrt{{b/2}^2 - a \cdot c}}{a}\]
Test:
NMSE problem 3.2.1
Bits:
128 bits
Bits error versus a
Bits error versus b/2
Bits error versus c
Time: 9.2 s
Input Error: 33.8
Output Error: 29.2
Log:
Profile: 🕒
\(\frac{1}{\frac{\left(-b/2\right) + \sqrt{{b/2}^2 - c \cdot a}}{c}}\)
  1. Started with
    \[\frac{\left(-b/2\right) - \sqrt{{b/2}^2 - a \cdot c}}{a}\]
    33.8
  2. Using strategy rm
    33.8
  3. Applied flip-- to get
    \[\frac{\color{red}{\left(-b/2\right) - \sqrt{{b/2}^2 - a \cdot c}}}{a} \leadsto \frac{\color{blue}{\frac{{\left(-b/2\right)}^2 - {\left(\sqrt{{b/2}^2 - a \cdot c}\right)}^2}{\left(-b/2\right) + \sqrt{{b/2}^2 - a \cdot c}}}}{a}\]
    43.5
  4. Applied simplify to get
    \[\frac{\frac{\color{red}{{\left(-b/2\right)}^2 - {\left(\sqrt{{b/2}^2 - a \cdot c}\right)}^2}}{\left(-b/2\right) + \sqrt{{b/2}^2 - a \cdot c}}}{a} \leadsto \frac{\frac{\color{blue}{a \cdot c}}{\left(-b/2\right) + \sqrt{{b/2}^2 - a \cdot c}}}{a}\]
    32.0
  5. Using strategy rm
    32.0
  6. Applied clear-num to get
    \[\color{red}{\frac{\frac{a \cdot c}{\left(-b/2\right) + \sqrt{{b/2}^2 - a \cdot c}}}{a}} \leadsto \color{blue}{\frac{1}{\frac{a}{\frac{a \cdot c}{\left(-b/2\right) + \sqrt{{b/2}^2 - a \cdot c}}}}}\]
    32.1
  7. Applied simplify to get
    \[\frac{1}{\color{red}{\frac{a}{\frac{a \cdot c}{\left(-b/2\right) + \sqrt{{b/2}^2 - a \cdot c}}}}} \leadsto \frac{1}{\color{blue}{\frac{\sqrt{b/2 \cdot b/2 - c \cdot a} + \left(-b/2\right)}{c}}}\]
    29.2
  8. Applied simplify to get
    \[\frac{1}{\frac{\color{red}{\sqrt{b/2 \cdot b/2 - c \cdot a} + \left(-b/2\right)}}{c}} \leadsto \frac{1}{\frac{\color{blue}{\left(-b/2\right) + \sqrt{{b/2}^2 - c \cdot a}}}{c}}\]
    29.2

Original test:


(lambda ((a default) (b/2 default) (c default))
  #:name "NMSE problem 3.2.1"
  (/ (- (- b/2) (sqrt (- (sqr b/2) (* a c)))) a))