(/ 1 (- (* 5641895665989011/10000000000000000 (/ (sqrt (- (- 1 z1) z1)) (* (exp (* z1 z1)) z1))) (- -1 z0)))

Percentage Accurate: 99.6% → 99.6%
Time: 2.7s
Alternatives: 10
Speedup: 1.0×

Specification

?
\[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
(FPCore (z1 z0)
  :precision binary64
  (/
 1.0
 (-
  (*
   0.5641895665989011
   (/ (sqrt (- (- 1.0 z1) z1)) (* (exp (* z1 z1)) z1)))
  (- -1.0 z0))))
double code(double z1, double z0) {
	return 1.0 / ((0.5641895665989011 * (sqrt(((1.0 - z1) - z1)) / (exp((z1 * z1)) * z1))) - (-1.0 - z0));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(z1, z0)
use fmin_fmax_functions
    real(8), intent (in) :: z1
    real(8), intent (in) :: z0
    code = 1.0d0 / ((0.5641895665989011d0 * (sqrt(((1.0d0 - z1) - z1)) / (exp((z1 * z1)) * z1))) - ((-1.0d0) - z0))
end function
public static double code(double z1, double z0) {
	return 1.0 / ((0.5641895665989011 * (Math.sqrt(((1.0 - z1) - z1)) / (Math.exp((z1 * z1)) * z1))) - (-1.0 - z0));
}
def code(z1, z0):
	return 1.0 / ((0.5641895665989011 * (math.sqrt(((1.0 - z1) - z1)) / (math.exp((z1 * z1)) * z1))) - (-1.0 - z0))
function code(z1, z0)
	return Float64(1.0 / Float64(Float64(0.5641895665989011 * Float64(sqrt(Float64(Float64(1.0 - z1) - z1)) / Float64(exp(Float64(z1 * z1)) * z1))) - Float64(-1.0 - z0)))
end
function tmp = code(z1, z0)
	tmp = 1.0 / ((0.5641895665989011 * (sqrt(((1.0 - z1) - z1)) / (exp((z1 * z1)) * z1))) - (-1.0 - z0));
end
code[z1_, z0_] := N[(1.0 / N[(N[(0.5641895665989011 * N[(N[Sqrt[N[(N[(1.0 - z1), $MachinePrecision] - z1), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[N[(z1 * z1), $MachinePrecision]], $MachinePrecision] * z1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 - z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)}

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 10 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 99.6% accurate, 1.0× speedup?

\[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
(FPCore (z1 z0)
  :precision binary64
  (/
 1.0
 (-
  (*
   0.5641895665989011
   (/ (sqrt (- (- 1.0 z1) z1)) (* (exp (* z1 z1)) z1)))
  (- -1.0 z0))))
double code(double z1, double z0) {
	return 1.0 / ((0.5641895665989011 * (sqrt(((1.0 - z1) - z1)) / (exp((z1 * z1)) * z1))) - (-1.0 - z0));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(z1, z0)
use fmin_fmax_functions
    real(8), intent (in) :: z1
    real(8), intent (in) :: z0
    code = 1.0d0 / ((0.5641895665989011d0 * (sqrt(((1.0d0 - z1) - z1)) / (exp((z1 * z1)) * z1))) - ((-1.0d0) - z0))
end function
public static double code(double z1, double z0) {
	return 1.0 / ((0.5641895665989011 * (Math.sqrt(((1.0 - z1) - z1)) / (Math.exp((z1 * z1)) * z1))) - (-1.0 - z0));
}
def code(z1, z0):
	return 1.0 / ((0.5641895665989011 * (math.sqrt(((1.0 - z1) - z1)) / (math.exp((z1 * z1)) * z1))) - (-1.0 - z0))
function code(z1, z0)
	return Float64(1.0 / Float64(Float64(0.5641895665989011 * Float64(sqrt(Float64(Float64(1.0 - z1) - z1)) / Float64(exp(Float64(z1 * z1)) * z1))) - Float64(-1.0 - z0)))
end
function tmp = code(z1, z0)
	tmp = 1.0 / ((0.5641895665989011 * (sqrt(((1.0 - z1) - z1)) / (exp((z1 * z1)) * z1))) - (-1.0 - z0));
end
code[z1_, z0_] := N[(1.0 / N[(N[(0.5641895665989011 * N[(N[Sqrt[N[(N[(1.0 - z1), $MachinePrecision] - z1), $MachinePrecision]], $MachinePrecision] / N[(N[Exp[N[(z1 * z1), $MachinePrecision]], $MachinePrecision] * z1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 - z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)}

Alternative 1: 99.6% accurate, 1.0× speedup?

\[\frac{1}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
(FPCore (z1 z0)
  :precision binary64
  (/
 1.0
 (-
  (/
   (*
    (* (sqrt (- (- 1.0 z1) z1)) 0.5641895665989011)
    (exp (* (- z1) z1)))
   z1)
  (- -1.0 z0))))
double code(double z1, double z0) {
	return 1.0 / ((((sqrt(((1.0 - z1) - z1)) * 0.5641895665989011) * exp((-z1 * z1))) / z1) - (-1.0 - z0));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(z1, z0)
use fmin_fmax_functions
    real(8), intent (in) :: z1
    real(8), intent (in) :: z0
    code = 1.0d0 / ((((sqrt(((1.0d0 - z1) - z1)) * 0.5641895665989011d0) * exp((-z1 * z1))) / z1) - ((-1.0d0) - z0))
end function
public static double code(double z1, double z0) {
	return 1.0 / ((((Math.sqrt(((1.0 - z1) - z1)) * 0.5641895665989011) * Math.exp((-z1 * z1))) / z1) - (-1.0 - z0));
}
def code(z1, z0):
	return 1.0 / ((((math.sqrt(((1.0 - z1) - z1)) * 0.5641895665989011) * math.exp((-z1 * z1))) / z1) - (-1.0 - z0))
function code(z1, z0)
	return Float64(1.0 / Float64(Float64(Float64(Float64(sqrt(Float64(Float64(1.0 - z1) - z1)) * 0.5641895665989011) * exp(Float64(Float64(-z1) * z1))) / z1) - Float64(-1.0 - z0)))
end
function tmp = code(z1, z0)
	tmp = 1.0 / ((((sqrt(((1.0 - z1) - z1)) * 0.5641895665989011) * exp((-z1 * z1))) / z1) - (-1.0 - z0));
end
code[z1_, z0_] := N[(1.0 / N[(N[(N[(N[(N[Sqrt[N[(N[(1.0 - z1), $MachinePrecision] - z1), $MachinePrecision]], $MachinePrecision] * 0.5641895665989011), $MachinePrecision] * N[Exp[N[((-z1) * z1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / z1), $MachinePrecision] - N[(-1.0 - z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{1}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)}
Derivation
  1. Initial program 99.6%

    \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
  2. Step-by-step derivation
    1. lift-*.f64N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    2. lift-/.f64N/A

      \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    3. associate-*r/N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    4. lift-*.f64N/A

      \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    5. associate-/r*N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
    6. lower-/.f64N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
  3. Applied rewrites99.6%

    \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
  4. Add Preprocessing

Alternative 2: 99.3% accurate, 1.1× speedup?

\[\frac{1}{\frac{\left(0.5641895665989011 + -0.5641895665989011 \cdot z1\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
(FPCore (z1 z0)
  :precision binary64
  (/
 1.0
 (-
  (/
   (*
    (+ 0.5641895665989011 (* -0.5641895665989011 z1))
    (exp (* (- z1) z1)))
   z1)
  (- -1.0 z0))))
double code(double z1, double z0) {
	return 1.0 / ((((0.5641895665989011 + (-0.5641895665989011 * z1)) * exp((-z1 * z1))) / z1) - (-1.0 - z0));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(z1, z0)
use fmin_fmax_functions
    real(8), intent (in) :: z1
    real(8), intent (in) :: z0
    code = 1.0d0 / ((((0.5641895665989011d0 + ((-0.5641895665989011d0) * z1)) * exp((-z1 * z1))) / z1) - ((-1.0d0) - z0))
end function
public static double code(double z1, double z0) {
	return 1.0 / ((((0.5641895665989011 + (-0.5641895665989011 * z1)) * Math.exp((-z1 * z1))) / z1) - (-1.0 - z0));
}
def code(z1, z0):
	return 1.0 / ((((0.5641895665989011 + (-0.5641895665989011 * z1)) * math.exp((-z1 * z1))) / z1) - (-1.0 - z0))
function code(z1, z0)
	return Float64(1.0 / Float64(Float64(Float64(Float64(0.5641895665989011 + Float64(-0.5641895665989011 * z1)) * exp(Float64(Float64(-z1) * z1))) / z1) - Float64(-1.0 - z0)))
end
function tmp = code(z1, z0)
	tmp = 1.0 / ((((0.5641895665989011 + (-0.5641895665989011 * z1)) * exp((-z1 * z1))) / z1) - (-1.0 - z0));
end
code[z1_, z0_] := N[(1.0 / N[(N[(N[(N[(0.5641895665989011 + N[(-0.5641895665989011 * z1), $MachinePrecision]), $MachinePrecision] * N[Exp[N[((-z1) * z1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / z1), $MachinePrecision] - N[(-1.0 - z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{1}{\frac{\left(0.5641895665989011 + -0.5641895665989011 \cdot z1\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)}
Derivation
  1. Initial program 99.6%

    \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
  2. Step-by-step derivation
    1. lift-*.f64N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    2. lift-/.f64N/A

      \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    3. associate-*r/N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    4. lift-*.f64N/A

      \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    5. associate-/r*N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
    6. lower-/.f64N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
  3. Applied rewrites99.6%

    \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
  4. Taylor expanded in z1 around 0

    \[\leadsto \frac{1}{\frac{\color{blue}{\left(\frac{5641895665989011}{10000000000000000} + \frac{-5641895665989011}{10000000000000000} \cdot z1\right)} \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
  5. Step-by-step derivation
    1. lower-+.f64N/A

      \[\leadsto \frac{1}{\frac{\left(\frac{5641895665989011}{10000000000000000} + \color{blue}{\frac{-5641895665989011}{10000000000000000} \cdot z1}\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
    2. lower-*.f6499.3%

      \[\leadsto \frac{1}{\frac{\left(0.5641895665989011 + -0.5641895665989011 \cdot \color{blue}{z1}\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
  6. Applied rewrites99.3%

    \[\leadsto \frac{1}{\frac{\color{blue}{\left(0.5641895665989011 + -0.5641895665989011 \cdot z1\right)} \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
  7. Add Preprocessing

Alternative 3: 99.0% accurate, 1.1× speedup?

\[\frac{1}{\frac{0.5641895665989011 \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
(FPCore (z1 z0)
  :precision binary64
  (/
 1.0
 (- (/ (* 0.5641895665989011 (exp (* (- z1) z1))) z1) (- -1.0 z0))))
double code(double z1, double z0) {
	return 1.0 / (((0.5641895665989011 * exp((-z1 * z1))) / z1) - (-1.0 - z0));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(z1, z0)
use fmin_fmax_functions
    real(8), intent (in) :: z1
    real(8), intent (in) :: z0
    code = 1.0d0 / (((0.5641895665989011d0 * exp((-z1 * z1))) / z1) - ((-1.0d0) - z0))
end function
public static double code(double z1, double z0) {
	return 1.0 / (((0.5641895665989011 * Math.exp((-z1 * z1))) / z1) - (-1.0 - z0));
}
def code(z1, z0):
	return 1.0 / (((0.5641895665989011 * math.exp((-z1 * z1))) / z1) - (-1.0 - z0))
function code(z1, z0)
	return Float64(1.0 / Float64(Float64(Float64(0.5641895665989011 * exp(Float64(Float64(-z1) * z1))) / z1) - Float64(-1.0 - z0)))
end
function tmp = code(z1, z0)
	tmp = 1.0 / (((0.5641895665989011 * exp((-z1 * z1))) / z1) - (-1.0 - z0));
end
code[z1_, z0_] := N[(1.0 / N[(N[(N[(0.5641895665989011 * N[Exp[N[((-z1) * z1), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / z1), $MachinePrecision] - N[(-1.0 - z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{1}{\frac{0.5641895665989011 \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)}
Derivation
  1. Initial program 99.6%

    \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
  2. Step-by-step derivation
    1. lift-*.f64N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    2. lift-/.f64N/A

      \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    3. associate-*r/N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    4. lift-*.f64N/A

      \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
    5. associate-/r*N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
    6. lower-/.f64N/A

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
  3. Applied rewrites99.6%

    \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
  4. Taylor expanded in z1 around 0

    \[\leadsto \frac{1}{\frac{\color{blue}{\frac{5641895665989011}{10000000000000000}} \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
  5. Step-by-step derivation
    1. Applied rewrites99.0%

      \[\leadsto \frac{1}{\frac{\color{blue}{0.5641895665989011} \cdot e^{\left(-z1\right) \cdot z1}}{z1} - \left(-1 - z0\right)} \]
    2. Add Preprocessing

    Alternative 4: 98.6% accurate, 5.5× speedup?

    \[\frac{1}{\frac{0.5641895665989011}{z1} - \left(-1 - z0\right)} \]
    (FPCore (z1 z0)
      :precision binary64
      (/ 1.0 (- (/ 0.5641895665989011 z1) (- -1.0 z0))))
    double code(double z1, double z0) {
    	return 1.0 / ((0.5641895665989011 / z1) - (-1.0 - z0));
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(z1, z0)
    use fmin_fmax_functions
        real(8), intent (in) :: z1
        real(8), intent (in) :: z0
        code = 1.0d0 / ((0.5641895665989011d0 / z1) - ((-1.0d0) - z0))
    end function
    
    public static double code(double z1, double z0) {
    	return 1.0 / ((0.5641895665989011 / z1) - (-1.0 - z0));
    }
    
    def code(z1, z0):
    	return 1.0 / ((0.5641895665989011 / z1) - (-1.0 - z0))
    
    function code(z1, z0)
    	return Float64(1.0 / Float64(Float64(0.5641895665989011 / z1) - Float64(-1.0 - z0)))
    end
    
    function tmp = code(z1, z0)
    	tmp = 1.0 / ((0.5641895665989011 / z1) - (-1.0 - z0));
    end
    
    code[z1_, z0_] := N[(1.0 / N[(N[(0.5641895665989011 / z1), $MachinePrecision] - N[(-1.0 - z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
    
    \frac{1}{\frac{0.5641895665989011}{z1} - \left(-1 - z0\right)}
    
    Derivation
    1. Initial program 99.6%

      \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
    2. Taylor expanded in z1 around 0

      \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000}}{z1}} - \left(-1 - z0\right)} \]
    3. Step-by-step derivation
      1. lower-/.f6498.6%

        \[\leadsto \frac{1}{\frac{0.5641895665989011}{\color{blue}{z1}} - \left(-1 - z0\right)} \]
    4. Applied rewrites98.6%

      \[\leadsto \frac{1}{\color{blue}{\frac{0.5641895665989011}{z1}} - \left(-1 - z0\right)} \]
    5. Add Preprocessing

    Alternative 5: 67.9% accurate, 4.0× speedup?

    \[\begin{array}{l} \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\ \;\;\;\;\frac{1}{z0}\\ \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\ \;\;\;\;z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(3.716277574360274 \cdot z1 - 1.369138938191455\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{0.4358104334010989 + z0}\\ \end{array} \]
    (FPCore (z1 z0)
      :precision binary64
      (if (<= (- -1.0 z0) -1e+46)
      (/ 1.0 z0)
      (if (<= (- -1.0 z0) 1e+69)
        (*
         z1
         (+
          1.7724539041519165
          (* z1 (- (* 3.716277574360274 z1) 1.369138938191455))))
        (/ 1.0 (+ 0.4358104334010989 z0)))))
    double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = z1 * (1.7724539041519165 + (z1 * ((3.716277574360274 * z1) - 1.369138938191455)));
    	} else {
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	}
    	return tmp;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(z1, z0)
    use fmin_fmax_functions
        real(8), intent (in) :: z1
        real(8), intent (in) :: z0
        real(8) :: tmp
        if (((-1.0d0) - z0) <= (-1d+46)) then
            tmp = 1.0d0 / z0
        else if (((-1.0d0) - z0) <= 1d+69) then
            tmp = z1 * (1.7724539041519165d0 + (z1 * ((3.716277574360274d0 * z1) - 1.369138938191455d0)))
        else
            tmp = 1.0d0 / (0.4358104334010989d0 + z0)
        end if
        code = tmp
    end function
    
    public static double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = z1 * (1.7724539041519165 + (z1 * ((3.716277574360274 * z1) - 1.369138938191455)));
    	} else {
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	}
    	return tmp;
    }
    
    def code(z1, z0):
    	tmp = 0
    	if (-1.0 - z0) <= -1e+46:
    		tmp = 1.0 / z0
    	elif (-1.0 - z0) <= 1e+69:
    		tmp = z1 * (1.7724539041519165 + (z1 * ((3.716277574360274 * z1) - 1.369138938191455)))
    	else:
    		tmp = 1.0 / (0.4358104334010989 + z0)
    	return tmp
    
    function code(z1, z0)
    	tmp = 0.0
    	if (Float64(-1.0 - z0) <= -1e+46)
    		tmp = Float64(1.0 / z0);
    	elseif (Float64(-1.0 - z0) <= 1e+69)
    		tmp = Float64(z1 * Float64(1.7724539041519165 + Float64(z1 * Float64(Float64(3.716277574360274 * z1) - 1.369138938191455))));
    	else
    		tmp = Float64(1.0 / Float64(0.4358104334010989 + z0));
    	end
    	return tmp
    end
    
    function tmp_2 = code(z1, z0)
    	tmp = 0.0;
    	if ((-1.0 - z0) <= -1e+46)
    		tmp = 1.0 / z0;
    	elseif ((-1.0 - z0) <= 1e+69)
    		tmp = z1 * (1.7724539041519165 + (z1 * ((3.716277574360274 * z1) - 1.369138938191455)));
    	else
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	end
    	tmp_2 = tmp;
    end
    
    code[z1_, z0_] := If[LessEqual[N[(-1.0 - z0), $MachinePrecision], -1e+46], N[(1.0 / z0), $MachinePrecision], If[LessEqual[N[(-1.0 - z0), $MachinePrecision], 1e+69], N[(z1 * N[(1.7724539041519165 + N[(z1 * N[(N[(3.716277574360274 * z1), $MachinePrecision] - 1.369138938191455), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.4358104334010989 + z0), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\
    \;\;\;\;\frac{1}{z0}\\
    
    \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\
    \;\;\;\;z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(3.716277574360274 \cdot z1 - 1.369138938191455\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{1}{0.4358104334010989 + z0}\\
    
    
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (-.f64 #s(literal -1 binary64) z0) < -9.9999999999999999e45

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z0 around inf

        \[\leadsto \color{blue}{\frac{1}{z0}} \]
      3. Step-by-step derivation
        1. lower-/.f6434.3%

          \[\leadsto \frac{1}{\color{blue}{z0}} \]
      4. Applied rewrites34.3%

        \[\leadsto \color{blue}{\frac{1}{z0}} \]

      if -9.9999999999999999e45 < (-.f64 #s(literal -1 binary64) z0) < 1.0000000000000001e69

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        2. lift-/.f64N/A

          \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        3. associate-*r/N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        4. lift-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        5. associate-/r*N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
        6. lower-/.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
      3. Applied rewrites99.6%

        \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
      4. Taylor expanded in z1 around 0

        \[\leadsto \color{blue}{z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right)} \]
      5. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto z1 \cdot \color{blue}{\left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right)} \]
        2. lower-+.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + \color{blue}{z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)}\right) \]
        3. lower-*.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \color{blue}{\left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)}\right) \]
        4. lower--.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \color{blue}{\frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}\right)\right) \]
        5. lower-*.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \color{blue}{\frac{100000000000000000000000000000000}{31830986705905585973052772758121}} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right) \]
        6. lower--.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right) \]
        7. lower-*.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right) \]
        8. lower-pow.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right) \]
        9. lower-+.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right) \]
        10. lower-*.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(z1 \cdot \left(\frac{15000000000000000}{5641895665989011} - \frac{-1000000000000000000000000000000000000000000000000}{179587105940202551393645634929067859283747008331} \cdot {\left(\frac{4358104334010989}{10000000000000000} + z0\right)}^{2}\right) - \frac{100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \color{blue}{\left(\frac{4358104334010989}{10000000000000000} + z0\right)}\right)\right) \]
        11. lower-+.f6445.9%

          \[\leadsto z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(z1 \cdot \left(2.6586808562278748 - -5.568328498667225 \cdot {\left(0.4358104334010989 + z0\right)}^{2}\right) - 3.1415928423433717 \cdot \left(0.4358104334010989 + \color{blue}{z0}\right)\right)\right) \]
      6. Applied rewrites45.9%

        \[\leadsto \color{blue}{z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(z1 \cdot \left(2.6586808562278748 - -5.568328498667225 \cdot {\left(0.4358104334010989 + z0\right)}^{2}\right) - 3.1415928423433717 \cdot \left(0.4358104334010989 + z0\right)\right)\right)} \]
      7. Taylor expanded in z0 around 0

        \[\leadsto z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(\frac{667395534449837449326319318953025000000000000000}{179587105940202551393645634929067859283747008331} \cdot z1 - \color{blue}{\frac{43581043340109890000000000000000}{31830986705905585973052772758121}}\right)\right) \]
      8. Step-by-step derivation
        1. lower--.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + z1 \cdot \left(\frac{667395534449837449326319318953025000000000000000}{179587105940202551393645634929067859283747008331} \cdot z1 - \frac{43581043340109890000000000000000}{31830986705905585973052772758121}\right)\right) \]
        2. lower-*.f6450.1%

          \[\leadsto z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(3.716277574360274 \cdot z1 - 1.369138938191455\right)\right) \]
      9. Applied rewrites50.1%

        \[\leadsto z1 \cdot \left(1.7724539041519165 + z1 \cdot \left(3.716277574360274 \cdot z1 - \color{blue}{1.369138938191455}\right)\right) \]

      if 1.0000000000000001e69 < (-.f64 #s(literal -1 binary64) z0)

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        2. lift-/.f64N/A

          \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        3. associate-*r/N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        4. lift-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        5. associate-/r*N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
        6. lower-/.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
      3. Applied rewrites99.6%

        \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
      4. Taylor expanded in z1 around 0

        \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}}} \]
      5. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{\color{blue}{z1}}} \]
        2. lower-+.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}} \]
        3. lower-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}} \]
        4. lower-+.f6477.4%

          \[\leadsto \frac{1}{\frac{0.5641895665989011 + z1 \cdot \left(0.4358104334010989 + z0\right)}{z1}} \]
      6. Applied rewrites77.4%

        \[\leadsto \frac{1}{\color{blue}{\frac{0.5641895665989011 + z1 \cdot \left(0.4358104334010989 + z0\right)}{z1}}} \]
      7. Taylor expanded in z1 around inf

        \[\leadsto \frac{1}{\frac{4358104334010989}{10000000000000000} + \color{blue}{z0}} \]
      8. Step-by-step derivation
        1. lower-+.f6437.3%

          \[\leadsto \frac{1}{0.4358104334010989 + z0} \]
      9. Applied rewrites37.3%

        \[\leadsto \frac{1}{0.4358104334010989 + \color{blue}{z0}} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 6: 67.7% accurate, 4.0× speedup?

    \[\begin{array}{l} \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\ \;\;\;\;\frac{1}{z0}\\ \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\ \;\;\;\;z1 \cdot \left(1.7724539041519165 + -3.1415928423433717 \cdot \left(z1 \cdot \left(0.4358104334010989 + z0\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{0.4358104334010989 + z0}\\ \end{array} \]
    (FPCore (z1 z0)
      :precision binary64
      (if (<= (- -1.0 z0) -1e+46)
      (/ 1.0 z0)
      (if (<= (- -1.0 z0) 1e+69)
        (*
         z1
         (+
          1.7724539041519165
          (* -3.1415928423433717 (* z1 (+ 0.4358104334010989 z0)))))
        (/ 1.0 (+ 0.4358104334010989 z0)))))
    double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = z1 * (1.7724539041519165 + (-3.1415928423433717 * (z1 * (0.4358104334010989 + z0))));
    	} else {
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	}
    	return tmp;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(z1, z0)
    use fmin_fmax_functions
        real(8), intent (in) :: z1
        real(8), intent (in) :: z0
        real(8) :: tmp
        if (((-1.0d0) - z0) <= (-1d+46)) then
            tmp = 1.0d0 / z0
        else if (((-1.0d0) - z0) <= 1d+69) then
            tmp = z1 * (1.7724539041519165d0 + ((-3.1415928423433717d0) * (z1 * (0.4358104334010989d0 + z0))))
        else
            tmp = 1.0d0 / (0.4358104334010989d0 + z0)
        end if
        code = tmp
    end function
    
    public static double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = z1 * (1.7724539041519165 + (-3.1415928423433717 * (z1 * (0.4358104334010989 + z0))));
    	} else {
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	}
    	return tmp;
    }
    
    def code(z1, z0):
    	tmp = 0
    	if (-1.0 - z0) <= -1e+46:
    		tmp = 1.0 / z0
    	elif (-1.0 - z0) <= 1e+69:
    		tmp = z1 * (1.7724539041519165 + (-3.1415928423433717 * (z1 * (0.4358104334010989 + z0))))
    	else:
    		tmp = 1.0 / (0.4358104334010989 + z0)
    	return tmp
    
    function code(z1, z0)
    	tmp = 0.0
    	if (Float64(-1.0 - z0) <= -1e+46)
    		tmp = Float64(1.0 / z0);
    	elseif (Float64(-1.0 - z0) <= 1e+69)
    		tmp = Float64(z1 * Float64(1.7724539041519165 + Float64(-3.1415928423433717 * Float64(z1 * Float64(0.4358104334010989 + z0)))));
    	else
    		tmp = Float64(1.0 / Float64(0.4358104334010989 + z0));
    	end
    	return tmp
    end
    
    function tmp_2 = code(z1, z0)
    	tmp = 0.0;
    	if ((-1.0 - z0) <= -1e+46)
    		tmp = 1.0 / z0;
    	elseif ((-1.0 - z0) <= 1e+69)
    		tmp = z1 * (1.7724539041519165 + (-3.1415928423433717 * (z1 * (0.4358104334010989 + z0))));
    	else
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	end
    	tmp_2 = tmp;
    end
    
    code[z1_, z0_] := If[LessEqual[N[(-1.0 - z0), $MachinePrecision], -1e+46], N[(1.0 / z0), $MachinePrecision], If[LessEqual[N[(-1.0 - z0), $MachinePrecision], 1e+69], N[(z1 * N[(1.7724539041519165 + N[(-3.1415928423433717 * N[(z1 * N[(0.4358104334010989 + z0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.4358104334010989 + z0), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\
    \;\;\;\;\frac{1}{z0}\\
    
    \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\
    \;\;\;\;z1 \cdot \left(1.7724539041519165 + -3.1415928423433717 \cdot \left(z1 \cdot \left(0.4358104334010989 + z0\right)\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{1}{0.4358104334010989 + z0}\\
    
    
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (-.f64 #s(literal -1 binary64) z0) < -9.9999999999999999e45

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z0 around inf

        \[\leadsto \color{blue}{\frac{1}{z0}} \]
      3. Step-by-step derivation
        1. lower-/.f6434.3%

          \[\leadsto \frac{1}{\color{blue}{z0}} \]
      4. Applied rewrites34.3%

        \[\leadsto \color{blue}{\frac{1}{z0}} \]

      if -9.9999999999999999e45 < (-.f64 #s(literal -1 binary64) z0) < 1.0000000000000001e69

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z1 around 0

        \[\leadsto \color{blue}{z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + \frac{-100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right)} \]
      3. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto z1 \cdot \color{blue}{\left(\frac{10000000000000000}{5641895665989011} + \frac{-100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)\right)} \]
        2. lower-+.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + \color{blue}{\frac{-100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)}\right) \]
        3. lower-*.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + \frac{-100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \color{blue}{\left(z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)\right)}\right) \]
        4. lower-*.f64N/A

          \[\leadsto z1 \cdot \left(\frac{10000000000000000}{5641895665989011} + \frac{-100000000000000000000000000000000}{31830986705905585973052772758121} \cdot \left(z1 \cdot \color{blue}{\left(\frac{4358104334010989}{10000000000000000} + z0\right)}\right)\right) \]
        5. lower-+.f6449.8%

          \[\leadsto z1 \cdot \left(1.7724539041519165 + -3.1415928423433717 \cdot \left(z1 \cdot \left(0.4358104334010989 + \color{blue}{z0}\right)\right)\right) \]
      4. Applied rewrites49.8%

        \[\leadsto \color{blue}{z1 \cdot \left(1.7724539041519165 + -3.1415928423433717 \cdot \left(z1 \cdot \left(0.4358104334010989 + z0\right)\right)\right)} \]

      if 1.0000000000000001e69 < (-.f64 #s(literal -1 binary64) z0)

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        2. lift-/.f64N/A

          \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        3. associate-*r/N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        4. lift-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        5. associate-/r*N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
        6. lower-/.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
      3. Applied rewrites99.6%

        \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
      4. Taylor expanded in z1 around 0

        \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}}} \]
      5. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{\color{blue}{z1}}} \]
        2. lower-+.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}} \]
        3. lower-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}} \]
        4. lower-+.f6477.4%

          \[\leadsto \frac{1}{\frac{0.5641895665989011 + z1 \cdot \left(0.4358104334010989 + z0\right)}{z1}} \]
      6. Applied rewrites77.4%

        \[\leadsto \frac{1}{\color{blue}{\frac{0.5641895665989011 + z1 \cdot \left(0.4358104334010989 + z0\right)}{z1}}} \]
      7. Taylor expanded in z1 around inf

        \[\leadsto \frac{1}{\frac{4358104334010989}{10000000000000000} + \color{blue}{z0}} \]
      8. Step-by-step derivation
        1. lower-+.f6437.3%

          \[\leadsto \frac{1}{0.4358104334010989 + z0} \]
      9. Applied rewrites37.3%

        \[\leadsto \frac{1}{0.4358104334010989 + \color{blue}{z0}} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 7: 67.5% accurate, 5.3× speedup?

    \[\begin{array}{l} \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\ \;\;\;\;\frac{1}{z0}\\ \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\ \;\;\;\;1.7724539041519165 \cdot z1\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{z0}\\ \end{array} \]
    (FPCore (z1 z0)
      :precision binary64
      (if (<= (- -1.0 z0) -1e+46)
      (/ 1.0 z0)
      (if (<= (- -1.0 z0) 1e+69) (* 1.7724539041519165 z1) (/ 1.0 z0))))
    double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = 1.7724539041519165 * z1;
    	} else {
    		tmp = 1.0 / z0;
    	}
    	return tmp;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(z1, z0)
    use fmin_fmax_functions
        real(8), intent (in) :: z1
        real(8), intent (in) :: z0
        real(8) :: tmp
        if (((-1.0d0) - z0) <= (-1d+46)) then
            tmp = 1.0d0 / z0
        else if (((-1.0d0) - z0) <= 1d+69) then
            tmp = 1.7724539041519165d0 * z1
        else
            tmp = 1.0d0 / z0
        end if
        code = tmp
    end function
    
    public static double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = 1.7724539041519165 * z1;
    	} else {
    		tmp = 1.0 / z0;
    	}
    	return tmp;
    }
    
    def code(z1, z0):
    	tmp = 0
    	if (-1.0 - z0) <= -1e+46:
    		tmp = 1.0 / z0
    	elif (-1.0 - z0) <= 1e+69:
    		tmp = 1.7724539041519165 * z1
    	else:
    		tmp = 1.0 / z0
    	return tmp
    
    function code(z1, z0)
    	tmp = 0.0
    	if (Float64(-1.0 - z0) <= -1e+46)
    		tmp = Float64(1.0 / z0);
    	elseif (Float64(-1.0 - z0) <= 1e+69)
    		tmp = Float64(1.7724539041519165 * z1);
    	else
    		tmp = Float64(1.0 / z0);
    	end
    	return tmp
    end
    
    function tmp_2 = code(z1, z0)
    	tmp = 0.0;
    	if ((-1.0 - z0) <= -1e+46)
    		tmp = 1.0 / z0;
    	elseif ((-1.0 - z0) <= 1e+69)
    		tmp = 1.7724539041519165 * z1;
    	else
    		tmp = 1.0 / z0;
    	end
    	tmp_2 = tmp;
    end
    
    code[z1_, z0_] := If[LessEqual[N[(-1.0 - z0), $MachinePrecision], -1e+46], N[(1.0 / z0), $MachinePrecision], If[LessEqual[N[(-1.0 - z0), $MachinePrecision], 1e+69], N[(1.7724539041519165 * z1), $MachinePrecision], N[(1.0 / z0), $MachinePrecision]]]
    
    \begin{array}{l}
    \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\
    \;\;\;\;\frac{1}{z0}\\
    
    \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\
    \;\;\;\;1.7724539041519165 \cdot z1\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{1}{z0}\\
    
    
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (-.f64 #s(literal -1 binary64) z0) < -9.9999999999999999e45 or 1.0000000000000001e69 < (-.f64 #s(literal -1 binary64) z0)

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z0 around inf

        \[\leadsto \color{blue}{\frac{1}{z0}} \]
      3. Step-by-step derivation
        1. lower-/.f6434.3%

          \[\leadsto \frac{1}{\color{blue}{z0}} \]
      4. Applied rewrites34.3%

        \[\leadsto \color{blue}{\frac{1}{z0}} \]

      if -9.9999999999999999e45 < (-.f64 #s(literal -1 binary64) z0) < 1.0000000000000001e69

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z1 around 0

        \[\leadsto \color{blue}{\frac{10000000000000000}{5641895665989011} \cdot z1} \]
      3. Step-by-step derivation
        1. lower-*.f6449.8%

          \[\leadsto 1.7724539041519165 \cdot \color{blue}{z1} \]
      4. Applied rewrites49.8%

        \[\leadsto \color{blue}{1.7724539041519165 \cdot z1} \]
    3. Recombined 2 regimes into one program.
    4. Add Preprocessing

    Alternative 8: 67.5% accurate, 4.8× speedup?

    \[\begin{array}{l} \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\ \;\;\;\;\frac{1}{z0}\\ \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\ \;\;\;\;1.7724539041519165 \cdot z1\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{0.4358104334010989 + z0}\\ \end{array} \]
    (FPCore (z1 z0)
      :precision binary64
      (if (<= (- -1.0 z0) -1e+46)
      (/ 1.0 z0)
      (if (<= (- -1.0 z0) 1e+69)
        (* 1.7724539041519165 z1)
        (/ 1.0 (+ 0.4358104334010989 z0)))))
    double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = 1.7724539041519165 * z1;
    	} else {
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	}
    	return tmp;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(z1, z0)
    use fmin_fmax_functions
        real(8), intent (in) :: z1
        real(8), intent (in) :: z0
        real(8) :: tmp
        if (((-1.0d0) - z0) <= (-1d+46)) then
            tmp = 1.0d0 / z0
        else if (((-1.0d0) - z0) <= 1d+69) then
            tmp = 1.7724539041519165d0 * z1
        else
            tmp = 1.0d0 / (0.4358104334010989d0 + z0)
        end if
        code = tmp
    end function
    
    public static double code(double z1, double z0) {
    	double tmp;
    	if ((-1.0 - z0) <= -1e+46) {
    		tmp = 1.0 / z0;
    	} else if ((-1.0 - z0) <= 1e+69) {
    		tmp = 1.7724539041519165 * z1;
    	} else {
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	}
    	return tmp;
    }
    
    def code(z1, z0):
    	tmp = 0
    	if (-1.0 - z0) <= -1e+46:
    		tmp = 1.0 / z0
    	elif (-1.0 - z0) <= 1e+69:
    		tmp = 1.7724539041519165 * z1
    	else:
    		tmp = 1.0 / (0.4358104334010989 + z0)
    	return tmp
    
    function code(z1, z0)
    	tmp = 0.0
    	if (Float64(-1.0 - z0) <= -1e+46)
    		tmp = Float64(1.0 / z0);
    	elseif (Float64(-1.0 - z0) <= 1e+69)
    		tmp = Float64(1.7724539041519165 * z1);
    	else
    		tmp = Float64(1.0 / Float64(0.4358104334010989 + z0));
    	end
    	return tmp
    end
    
    function tmp_2 = code(z1, z0)
    	tmp = 0.0;
    	if ((-1.0 - z0) <= -1e+46)
    		tmp = 1.0 / z0;
    	elseif ((-1.0 - z0) <= 1e+69)
    		tmp = 1.7724539041519165 * z1;
    	else
    		tmp = 1.0 / (0.4358104334010989 + z0);
    	end
    	tmp_2 = tmp;
    end
    
    code[z1_, z0_] := If[LessEqual[N[(-1.0 - z0), $MachinePrecision], -1e+46], N[(1.0 / z0), $MachinePrecision], If[LessEqual[N[(-1.0 - z0), $MachinePrecision], 1e+69], N[(1.7724539041519165 * z1), $MachinePrecision], N[(1.0 / N[(0.4358104334010989 + z0), $MachinePrecision]), $MachinePrecision]]]
    
    \begin{array}{l}
    \mathbf{if}\;-1 - z0 \leq -1 \cdot 10^{+46}:\\
    \;\;\;\;\frac{1}{z0}\\
    
    \mathbf{elif}\;-1 - z0 \leq 10^{+69}:\\
    \;\;\;\;1.7724539041519165 \cdot z1\\
    
    \mathbf{else}:\\
    \;\;\;\;\frac{1}{0.4358104334010989 + z0}\\
    
    
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (-.f64 #s(literal -1 binary64) z0) < -9.9999999999999999e45

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z0 around inf

        \[\leadsto \color{blue}{\frac{1}{z0}} \]
      3. Step-by-step derivation
        1. lower-/.f6434.3%

          \[\leadsto \frac{1}{\color{blue}{z0}} \]
      4. Applied rewrites34.3%

        \[\leadsto \color{blue}{\frac{1}{z0}} \]

      if -9.9999999999999999e45 < (-.f64 #s(literal -1 binary64) z0) < 1.0000000000000001e69

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Taylor expanded in z1 around 0

        \[\leadsto \color{blue}{\frac{10000000000000000}{5641895665989011} \cdot z1} \]
      3. Step-by-step derivation
        1. lower-*.f6449.8%

          \[\leadsto 1.7724539041519165 \cdot \color{blue}{z1} \]
      4. Applied rewrites49.8%

        \[\leadsto \color{blue}{1.7724539041519165 \cdot z1} \]

      if 1.0000000000000001e69 < (-.f64 #s(literal -1 binary64) z0)

      1. Initial program 99.6%

        \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
      2. Step-by-step derivation
        1. lift-*.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{5641895665989011}{10000000000000000} \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        2. lift-/.f64N/A

          \[\leadsto \frac{1}{\frac{5641895665989011}{10000000000000000} \cdot \color{blue}{\frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        3. associate-*r/N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        4. lift-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{\color{blue}{e^{z1 \cdot z1} \cdot z1}} - \left(-1 - z0\right)} \]
        5. associate-/r*N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
        6. lower-/.f64N/A

          \[\leadsto \frac{1}{\color{blue}{\frac{\frac{\frac{5641895665989011}{10000000000000000} \cdot \sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1}}}{z1}} - \left(-1 - z0\right)} \]
      3. Applied rewrites99.6%

        \[\leadsto \frac{1}{\color{blue}{\frac{\left(\sqrt{\left(1 - z1\right) - z1} \cdot 0.5641895665989011\right) \cdot e^{\left(-z1\right) \cdot z1}}{z1}} - \left(-1 - z0\right)} \]
      4. Taylor expanded in z1 around 0

        \[\leadsto \frac{1}{\color{blue}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}}} \]
      5. Step-by-step derivation
        1. lower-/.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{\color{blue}{z1}}} \]
        2. lower-+.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}} \]
        3. lower-*.f64N/A

          \[\leadsto \frac{1}{\frac{\frac{5641895665989011}{10000000000000000} + z1 \cdot \left(\frac{4358104334010989}{10000000000000000} + z0\right)}{z1}} \]
        4. lower-+.f6477.4%

          \[\leadsto \frac{1}{\frac{0.5641895665989011 + z1 \cdot \left(0.4358104334010989 + z0\right)}{z1}} \]
      6. Applied rewrites77.4%

        \[\leadsto \frac{1}{\color{blue}{\frac{0.5641895665989011 + z1 \cdot \left(0.4358104334010989 + z0\right)}{z1}}} \]
      7. Taylor expanded in z1 around inf

        \[\leadsto \frac{1}{\frac{4358104334010989}{10000000000000000} + \color{blue}{z0}} \]
      8. Step-by-step derivation
        1. lower-+.f6437.3%

          \[\leadsto \frac{1}{0.4358104334010989 + z0} \]
      9. Applied rewrites37.3%

        \[\leadsto \frac{1}{0.4358104334010989 + \color{blue}{z0}} \]
    3. Recombined 3 regimes into one program.
    4. Add Preprocessing

    Alternative 9: 49.8% accurate, 26.7× speedup?

    \[1.7724539041519165 \cdot z1 \]
    (FPCore (z1 z0)
      :precision binary64
      (* 1.7724539041519165 z1))
    double code(double z1, double z0) {
    	return 1.7724539041519165 * z1;
    }
    
    module fmin_fmax_functions
        implicit none
        private
        public fmax
        public fmin
    
        interface fmax
            module procedure fmax88
            module procedure fmax44
            module procedure fmax84
            module procedure fmax48
        end interface
        interface fmin
            module procedure fmin88
            module procedure fmin44
            module procedure fmin84
            module procedure fmin48
        end interface
    contains
        real(8) function fmax88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(4) function fmax44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, max(x, y), y /= y), x /= x)
        end function
        real(8) function fmax84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmax48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
        end function
        real(8) function fmin88(x, y) result (res)
            real(8), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(4) function fmin44(x, y) result (res)
            real(4), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(y, merge(x, min(x, y), y /= y), x /= x)
        end function
        real(8) function fmin84(x, y) result(res)
            real(8), intent (in) :: x
            real(4), intent (in) :: y
            res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
        end function
        real(8) function fmin48(x, y) result(res)
            real(4), intent (in) :: x
            real(8), intent (in) :: y
            res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
        end function
    end module
    
    real(8) function code(z1, z0)
    use fmin_fmax_functions
        real(8), intent (in) :: z1
        real(8), intent (in) :: z0
        code = 1.7724539041519165d0 * z1
    end function
    
    public static double code(double z1, double z0) {
    	return 1.7724539041519165 * z1;
    }
    
    def code(z1, z0):
    	return 1.7724539041519165 * z1
    
    function code(z1, z0)
    	return Float64(1.7724539041519165 * z1)
    end
    
    function tmp = code(z1, z0)
    	tmp = 1.7724539041519165 * z1;
    end
    
    code[z1_, z0_] := N[(1.7724539041519165 * z1), $MachinePrecision]
    
    1.7724539041519165 \cdot z1
    
    Derivation
    1. Initial program 99.6%

      \[\frac{1}{0.5641895665989011 \cdot \frac{\sqrt{\left(1 - z1\right) - z1}}{e^{z1 \cdot z1} \cdot z1} - \left(-1 - z0\right)} \]
    2. Taylor expanded in z1 around 0

      \[\leadsto \color{blue}{\frac{10000000000000000}{5641895665989011} \cdot z1} \]
    3. Step-by-step derivation
      1. lower-*.f6449.8%

        \[\leadsto 1.7724539041519165 \cdot \color{blue}{z1} \]
    4. Applied rewrites49.8%

      \[\leadsto \color{blue}{1.7724539041519165 \cdot z1} \]
    5. Add Preprocessing

    Reproduce

    ?
    herbie shell --seed 2025250 
    (FPCore (z1 z0)
      :name "(/ 1 (- (* 5641895665989011/10000000000000000 (/ (sqrt (- (- 1 z1) z1)) (* (exp (* z1 z1)) z1))) (- -1 z0)))"
      :precision binary64
      (/ 1.0 (- (* 0.5641895665989011 (/ (sqrt (- (- 1.0 z1) z1)) (* (exp (* z1 z1)) z1))) (- -1.0 z0))))