Average Error: 0.1 → 0.2
Time: 14.9s
Precision: 64
Internal Precision: 320
$\sqrt{x} + \frac{1.0}{\sqrt{x}}$
$\frac{\sqrt{x} \cdot \sqrt{x} - \frac{1.0 \cdot \frac{1.0}{\sqrt{x}}}{\sqrt{x}}}{\sqrt{x} - \frac{1.0}{\sqrt{x}}}$

# Try it out

Results

 In Out
Enter valid numbers for all inputs

# Derivation

1. Initial program 0.1

$\sqrt{x} + \frac{1.0}{\sqrt{x}}$
2. Using strategy rm
3. Applied flip-+0.2

$\leadsto \color{blue}{\frac{\sqrt{x} \cdot \sqrt{x} - \frac{1.0}{\sqrt{x}} \cdot \frac{1.0}{\sqrt{x}}}{\sqrt{x} - \frac{1.0}{\sqrt{x}}}}$
4. Using strategy rm
5. Applied associate-*r/0.2

$\leadsto \frac{\sqrt{x} \cdot \sqrt{x} - \color{blue}{\frac{\frac{1.0}{\sqrt{x}} \cdot 1.0}{\sqrt{x}}}}{\sqrt{x} - \frac{1.0}{\sqrt{x}}}$
6. Final simplification0.2

$\leadsto \frac{\sqrt{x} \cdot \sqrt{x} - \frac{1.0 \cdot \frac{1.0}{\sqrt{x}}}{\sqrt{x}}}{\sqrt{x} - \frac{1.0}{\sqrt{x}}}$

# Runtime

Time bar (total: 14.9s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)'
(FPCore (x)
:name "sqrt(x) + 1. / sqrt(x)"
(+ (sqrt x) (/ 1.0 (sqrt x))))