
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
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(t, l, k)
use fmin_fmax_functions
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (t l k) :precision binary64 (/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
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(t, l, k)
use fmin_fmax_functions
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
def code(t, l, k): return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
function code(t, l, k) return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0))) end
function tmp = code(t, l, k) tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0)); end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\end{array}
(FPCore (t l k)
:precision binary64
(/
2.0
(*
(+
(/ (ratio-of-squares (* k (sin k)) l) (cos k))
(* (/ (ratio-of-squares (* t (sin k)) l) (cos k)) 2.0))
t)))\begin{array}{l}
\\
\frac{2}{\left(\frac{\mathsf{ratio\_of\_squares}\left(\left(k \cdot \sin k\right), \ell\right)}{\cos k} + \frac{\mathsf{ratio\_of\_squares}\left(\left(t \cdot \sin k\right), \ell\right)}{\cos k} \cdot 2\right) \cdot t}
\end{array}
Initial program 53.9%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites94.7%
(FPCore (t l k)
:precision binary64
(let* ((t_1
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
(if (or (<= t_1 0.0) (not (<= t_1 INFINITY)))
(/ 2.0 (* (/ (ratio-of-squares (* (sin k) k) l) (cos k)) t))
(/ (ratio-of-squares (/ l k) t) t))))\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)\\
\mathbf{if}\;t\_1 \leq 0 \lor \neg \left(t\_1 \leq \infty\right):\\
\;\;\;\;\frac{2}{\frac{\mathsf{ratio\_of\_squares}\left(\left(\sin k \cdot k\right), \ell\right)}{\cos k} \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64))) < 0.0 or +inf.0 < (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64))) Initial program 43.6%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites94.7%
Taylor expanded in t around 0
associate-/r*N/A
pow-prod-downN/A
pow2N/A
pow2N/A
lower-ratio-of-squares.f64N/A
lift-sin.f64N/A
lift-*.f64N/A
lift-cos.f64N/A
lift-/.f6472.0
lift-*.f64N/A
lift-sin.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift-sin.f6472.0
Applied rewrites72.0%
if 0.0 < (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64))) < +inf.0Initial program 81.6%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6476.8
Applied rewrites76.8%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6476.7
Applied rewrites76.7%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6482.8
Applied rewrites82.8%
Final simplification74.9%
(FPCore (t l k)
:precision binary64
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0)))
2e+275)
(/ (ratio-of-squares (/ l k) t) t)
(* (* (ratio-of-squares l k) (/ (cos k) (* (* k k) t))) 2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \leq 2 \cdot 10^{+275}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{\cos k}{\left(k \cdot k\right) \cdot t}\right) \cdot 2\\
\end{array}
\end{array}
if (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) < 1.99999999999999992e275Initial program 80.1%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6478.6
Applied rewrites78.6%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6478.6
Applied rewrites78.6%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6482.7
Applied rewrites82.7%
if 1.99999999999999992e275 < (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) Initial program 18.5%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6477.1
Applied rewrites77.1%
Taylor expanded in k around 0
pow2N/A
lower-*.f6461.4
Applied rewrites61.4%
(FPCore (t l k)
:precision binary64
(let* ((t_1 (/ l (* k k))))
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0)))
2e+275)
(/ (ratio-of-squares (/ l k) t) t)
(* (/ (* t_1 t_1) t) 2.0))))\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \leq 2 \cdot 10^{+275}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_1 \cdot t\_1}{t} \cdot 2\\
\end{array}
\end{array}
if (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) < 1.99999999999999992e275Initial program 80.1%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6478.6
Applied rewrites78.6%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6478.6
Applied rewrites78.6%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6482.7
Applied rewrites82.7%
if 1.99999999999999992e275 < (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) Initial program 18.5%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6477.1
Applied rewrites77.1%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
sqr-powN/A
metadata-evalN/A
metadata-evalN/A
lower-ratio-of-squares.f64N/A
pow2N/A
lower-*.f6426.5
Applied rewrites26.5%
lift-*.f64N/A
pow2N/A
lower-ratio-of-squares.f64N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
pow2N/A
lift-*.f64N/A
lower-/.f64N/A
pow2N/A
lift-*.f6455.8
Applied rewrites55.8%
(FPCore (t l k)
:precision binary64
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0)))
2e+275)
(/ (ratio-of-squares (/ l k) t) t)
(*
(/
(* (ratio-of-squares l k) 1.0)
(* (+ (* (* (* k k) t) -0.3333333333333333) t) (* k k)))
2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \leq 2 \cdot 10^{+275}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot 1}{\left(\left(\left(k \cdot k\right) \cdot t\right) \cdot -0.3333333333333333 + t\right) \cdot \left(k \cdot k\right)} \cdot 2\\
\end{array}
\end{array}
if (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) < 1.99999999999999992e275Initial program 80.1%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6478.6
Applied rewrites78.6%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6478.6
Applied rewrites78.6%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6482.7
Applied rewrites82.7%
if 1.99999999999999992e275 < (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) Initial program 18.5%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6477.1
Applied rewrites77.1%
Taylor expanded in k around 0
Applied rewrites55.6%
lift-*.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift-pow.f64N/A
lift-sin.f64N/A
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lift-sin.f64N/A
lift-pow.f64N/A
lift-*.f6455.5
Applied rewrites55.5%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
pow2N/A
lift-*.f64N/A
pow2N/A
lift-*.f6456.7
Applied rewrites56.7%
(FPCore (t l k)
:precision binary64
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0)))
2e+275)
(/ (ratio-of-squares (/ l k) t) t)
(*
(*
(ratio-of-squares l k)
(/ 1.0 (* (* (+ (* (* k k) -0.3333333333333333) 1.0) (* k k)) t)))
2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \leq 2 \cdot 10^{+275}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{1}{\left(\left(\left(k \cdot k\right) \cdot -0.3333333333333333 + 1\right) \cdot \left(k \cdot k\right)\right) \cdot t}\right) \cdot 2\\
\end{array}
\end{array}
if (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) < 1.99999999999999992e275Initial program 80.1%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6478.6
Applied rewrites78.6%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6478.6
Applied rewrites78.6%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6482.7
Applied rewrites82.7%
if 1.99999999999999992e275 < (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) Initial program 18.5%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6477.1
Applied rewrites77.1%
Taylor expanded in k around 0
Applied rewrites55.6%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f64N/A
*-commutativeN/A
lower-*.f64N/A
pow2N/A
lift-*.f64N/A
pow2N/A
lift-*.f6455.8
Applied rewrites55.8%
(FPCore (t l k)
:precision binary64
(if (<=
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0)))
2e+275)
(/ (ratio-of-squares (/ l k) t) t)
(* (* (ratio-of-squares l k) (/ 1.0 (* (* k k) t))) 2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)} \leq 2 \cdot 10^{+275}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{1}{\left(k \cdot k\right) \cdot t}\right) \cdot 2\\
\end{array}
\end{array}
if (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) < 1.99999999999999992e275Initial program 80.1%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6478.6
Applied rewrites78.6%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6478.6
Applied rewrites78.6%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6482.7
Applied rewrites82.7%
if 1.99999999999999992e275 < (/.f64 #s(literal 2 binary64) (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64)))) Initial program 18.5%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6477.1
Applied rewrites77.1%
Taylor expanded in k around 0
Applied rewrites55.6%
Taylor expanded in k around 0
pow2N/A
lift-*.f6454.7
Applied rewrites54.7%
(FPCore (t l k)
:precision binary64
(if (<=
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))
0.0)
(/ (ratio-of-squares l k) (* (* t t) t))
(/ (ratio-of-squares (/ l k) t) t)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right) \leq 0:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\ell, k\right)}{\left(t \cdot t\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), t\right)}{t}\\
\end{array}
\end{array}
if (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64))) < 0.0Initial program 80.0%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6481.1
Applied rewrites81.1%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6481.1
Applied rewrites81.1%
if 0.0 < (*.f64 (*.f64 (*.f64 (/.f64 (pow.f64 t #s(literal 3 binary64)) (*.f64 l l)) (sin.f64 k)) (tan.f64 k)) (+.f64 (+.f64 #s(literal 1 binary64) (pow.f64 (/.f64 k t) #s(literal 2 binary64))) #s(literal 1 binary64))) Initial program 36.6%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6447.4
Applied rewrites47.4%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6447.3
Applied rewrites47.3%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
pow2N/A
associate-/r*N/A
lower-/.f64N/A
lift-ratio-of-squares.f64N/A
times-fracN/A
pow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f6460.8
Applied rewrites60.8%
(FPCore (t l k)
:precision binary64
(if (<= k 5600.0)
(/
2.0
(*
(+
(ratio-of-squares (* k k) l)
(* (/ (ratio-of-squares (* t (sin k)) l) (cos k)) 2.0))
t))
(* (* (ratio-of-squares l k) (/ (/ (cos k) (pow (sin k) 2.0)) t)) 2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 5600:\\
\;\;\;\;\frac{2}{\left(\mathsf{ratio\_of\_squares}\left(\left(k \cdot k\right), \ell\right) + \frac{\mathsf{ratio\_of\_squares}\left(\left(t \cdot \sin k\right), \ell\right)}{\cos k} \cdot 2\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{\frac{\cos k}{{\sin k}^{2}}}{t}\right) \cdot 2\\
\end{array}
\end{array}
if k < 5600Initial program 56.3%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites93.9%
Taylor expanded in k around 0
sqr-powN/A
metadata-evalN/A
metadata-evalN/A
pow2N/A
lower-ratio-of-squares.f64N/A
pow2N/A
lower-*.f6462.4
Applied rewrites62.4%
if 5600 < k Initial program 44.4%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6481.5
Applied rewrites81.5%
lift-/.f64N/A
lift-cos.f64N/A
lift-*.f64N/A
lift-pow.f64N/A
lift-sin.f64N/A
associate-/r*N/A
lower-/.f64N/A
lift-cos.f64N/A
lift-sin.f64N/A
lift-pow.f64N/A
lift-/.f6481.6
Applied rewrites81.6%
(FPCore (t l k)
:precision binary64
(if (<= k 5600.0)
(/
2.0
(*
(+
(ratio-of-squares (* k k) l)
(* (/ (ratio-of-squares (* t (sin k)) l) (cos k)) 2.0))
t))
(* (* (ratio-of-squares l k) (/ (cos k) (* (pow (sin k) 2.0) t))) 2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 5600:\\
\;\;\;\;\frac{2}{\left(\mathsf{ratio\_of\_squares}\left(\left(k \cdot k\right), \ell\right) + \frac{\mathsf{ratio\_of\_squares}\left(\left(t \cdot \sin k\right), \ell\right)}{\cos k} \cdot 2\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{\cos k}{{\sin k}^{2} \cdot t}\right) \cdot 2\\
\end{array}
\end{array}
if k < 5600Initial program 56.3%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites93.9%
Taylor expanded in k around 0
sqr-powN/A
metadata-evalN/A
metadata-evalN/A
pow2N/A
lower-ratio-of-squares.f64N/A
pow2N/A
lower-*.f6462.4
Applied rewrites62.4%
if 5600 < k Initial program 44.4%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6481.5
Applied rewrites81.5%
(FPCore (t l k)
:precision binary64
(if (<= k 5600.0)
(/
2.0
(*
(+
(ratio-of-squares (* k k) l)
(* (/ (ratio-of-squares (* t (sin k)) l) (cos k)) 2.0))
t))
(*
(*
(ratio-of-squares l k)
(/ (cos k) (* (- 0.5 (* 0.5 (cos (* 2.0 k)))) t)))
2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 5600:\\
\;\;\;\;\frac{2}{\left(\mathsf{ratio\_of\_squares}\left(\left(k \cdot k\right), \ell\right) + \frac{\mathsf{ratio\_of\_squares}\left(\left(t \cdot \sin k\right), \ell\right)}{\cos k} \cdot 2\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{\cos k}{\left(0.5 - 0.5 \cdot \cos \left(2 \cdot k\right)\right) \cdot t}\right) \cdot 2\\
\end{array}
\end{array}
if k < 5600Initial program 56.3%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites93.9%
Taylor expanded in k around 0
sqr-powN/A
metadata-evalN/A
metadata-evalN/A
pow2N/A
lower-ratio-of-squares.f64N/A
pow2N/A
lower-*.f6462.4
Applied rewrites62.4%
if 5600 < k Initial program 44.4%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6481.5
Applied rewrites81.5%
lift-pow.f64N/A
lift-sin.f64N/A
unpow2N/A
sqr-sin-aN/A
lower--.f64N/A
lower-*.f64N/A
lower-cos.f64N/A
lower-*.f6481.4
Applied rewrites81.4%
(FPCore (t l k)
:precision binary64
(if (<= k 10000.0)
(/ 2.0 (* (/ (* (ratio-of-squares (* (sin k) t) l) 2.0) (cos k)) t))
(*
(*
(ratio-of-squares l k)
(/ (cos k) (* (- 0.5 (* 0.5 (cos (* 2.0 k)))) t)))
2.0)))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 10000:\\
\;\;\;\;\frac{2}{\frac{\mathsf{ratio\_of\_squares}\left(\left(\sin k \cdot t\right), \ell\right) \cdot 2}{\cos k} \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\ell, k\right) \cdot \frac{\cos k}{\left(0.5 - 0.5 \cdot \cos \left(2 \cdot k\right)\right) \cdot t}\right) \cdot 2\\
\end{array}
\end{array}
if k < 1e4Initial program 56.3%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites93.9%
Taylor expanded in t around inf
*-commutativeN/A
associate-/r*N/A
pow-prod-downN/A
pow2N/A
pow2N/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites72.2%
if 1e4 < k Initial program 44.4%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6481.5
Applied rewrites81.5%
lift-pow.f64N/A
lift-sin.f64N/A
unpow2N/A
sqr-sin-aN/A
lower--.f64N/A
lower-*.f64N/A
lower-cos.f64N/A
lower-*.f6481.4
Applied rewrites81.4%
(FPCore (t l k)
:precision binary64
(if (<= k 3.7e-150)
(/ (ratio-of-squares l k) (* (* t t) t))
(if (<= k 2.8e-6)
(/
2.0
(*
(*
(+
(*
(+
(pow l -2.0)
(* (* (ratio-of-squares t l) 0.16666666666666666) 2.0))
(* k k))
(* (ratio-of-squares t l) 2.0))
(* k k))
t))
(* (* (ratio-of-squares (/ l k) (sin k)) (/ (cos k) t)) 2.0))))\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 3.7 \cdot 10^{-150}:\\
\;\;\;\;\frac{\mathsf{ratio\_of\_squares}\left(\ell, k\right)}{\left(t \cdot t\right) \cdot t}\\
\mathbf{elif}\;k \leq 2.8 \cdot 10^{-6}:\\
\;\;\;\;\frac{2}{\left(\left(\left({\ell}^{-2} + \left(\mathsf{ratio\_of\_squares}\left(t, \ell\right) \cdot 0.16666666666666666\right) \cdot 2\right) \cdot \left(k \cdot k\right) + \mathsf{ratio\_of\_squares}\left(t, \ell\right) \cdot 2\right) \cdot \left(k \cdot k\right)\right) \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), \sin k\right) \cdot \frac{\cos k}{t}\right) \cdot 2\\
\end{array}
\end{array}
if k < 3.70000000000000001e-150Initial program 55.6%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6462.9
Applied rewrites62.9%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6462.9
Applied rewrites62.9%
if 3.70000000000000001e-150 < k < 2.79999999999999987e-6Initial program 66.0%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites96.1%
Taylor expanded in k around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.9%
if 2.79999999999999987e-6 < k Initial program 42.8%
Applied rewrites27.8%
Applied rewrites27.7%
lift-*.f64N/A
lift-*.f64N/A
lift-pow.f64N/A
lift-ratio-of-squares.f64N/A
lift-sin.f64N/A
lift-*.f64N/A
lift-tan.f64N/A
lift-+.f64N/A
lift-ratio-of-squares.f64N/A
associate-*l*N/A
pow-prod-upN/A
metadata-evalN/A
pow2N/A
lower-*.f64N/A
Applied rewrites27.7%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
associate-*l/N/A
pow2N/A
pow2N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites78.5%
(FPCore (t l k) :precision binary64 (if (<= k 10000.0) (/ 2.0 (* (/ (* (ratio-of-squares (* (sin k) t) l) 2.0) (cos k)) t)) (* (* (ratio-of-squares (/ l k) (sin k)) (/ (cos k) t)) 2.0)))
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq 10000:\\
\;\;\;\;\frac{2}{\frac{\mathsf{ratio\_of\_squares}\left(\left(\sin k \cdot t\right), \ell\right) \cdot 2}{\cos k} \cdot t}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{ratio\_of\_squares}\left(\left(\frac{\ell}{k}\right), \sin k\right) \cdot \frac{\cos k}{t}\right) \cdot 2\\
\end{array}
\end{array}
if k < 1e4Initial program 56.3%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
Applied rewrites93.9%
Taylor expanded in t around inf
*-commutativeN/A
associate-/r*N/A
pow-prod-downN/A
pow2N/A
pow2N/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites72.2%
if 1e4 < k Initial program 44.4%
Applied rewrites28.8%
Applied rewrites28.8%
lift-*.f64N/A
lift-*.f64N/A
lift-pow.f64N/A
lift-ratio-of-squares.f64N/A
lift-sin.f64N/A
lift-*.f64N/A
lift-tan.f64N/A
lift-+.f64N/A
lift-ratio-of-squares.f64N/A
associate-*l*N/A
pow-prod-upN/A
metadata-evalN/A
pow2N/A
lower-*.f64N/A
Applied rewrites28.8%
Taylor expanded in t around 0
*-commutativeN/A
associate-/r*N/A
associate-*l/N/A
pow2N/A
pow2N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites81.4%
(FPCore (t l k) :precision binary64 (/ (ratio-of-squares l k) (* (* t t) t)))
\begin{array}{l}
\\
\frac{\mathsf{ratio\_of\_squares}\left(\ell, k\right)}{\left(t \cdot t\right) \cdot t}
\end{array}
Initial program 53.9%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lift-pow.f6460.8
Applied rewrites60.8%
lift-pow.f64N/A
unpow3N/A
pow2N/A
lower-*.f64N/A
pow2N/A
lower-*.f6460.8
Applied rewrites60.8%
(FPCore (t l k) :precision binary64 (* (/ (ratio-of-squares l (* k k)) t) 2.0))
\begin{array}{l}
\\
\frac{\mathsf{ratio\_of\_squares}\left(\ell, \left(k \cdot k\right)\right)}{t} \cdot 2
\end{array}
Initial program 53.9%
Taylor expanded in t around 0
*-commutativeN/A
lower-*.f64N/A
times-fracN/A
lower-*.f64N/A
pow2N/A
unpow2N/A
lower-ratio-of-squares.f64N/A
lower-/.f64N/A
lower-cos.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-pow.f64N/A
lift-sin.f6467.6
Applied rewrites67.6%
Taylor expanded in k around 0
associate-/r*N/A
lower-/.f64N/A
pow2N/A
sqr-powN/A
metadata-evalN/A
metadata-evalN/A
lower-ratio-of-squares.f64N/A
pow2N/A
lower-*.f6424.3
Applied rewrites24.3%
herbie shell --seed 2025058
(FPCore (t l k)
:name "Toniolo and Linder, Equation (10+)"
:precision binary64
(/ 2.0 (* (* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k)) (+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))