
(FPCore (x y z) :precision binary64 (/ (* (cosh x) (/ y x)) z))
double code(double x, double y, double z) {
return (cosh(x) * (y / x)) / z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (cosh(x) * (y / x)) / z
end function
public static double code(double x, double y, double z) {
return (Math.cosh(x) * (y / x)) / z;
}
def code(x, y, z): return (math.cosh(x) * (y / x)) / z
function code(x, y, z) return Float64(Float64(cosh(x) * Float64(y / x)) / z) end
function tmp = code(x, y, z) tmp = (cosh(x) * (y / x)) / z; end
code[x_, y_, z_] := N[(N[(N[Cosh[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cosh x \cdot \frac{y}{x}}{z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (* (cosh x) (/ y x)) z))
double code(double x, double y, double z) {
return (cosh(x) * (y / x)) / z;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (cosh(x) * (y / x)) / z
end function
public static double code(double x, double y, double z) {
return (Math.cosh(x) * (y / x)) / z;
}
def code(x, y, z): return (math.cosh(x) * (y / x)) / z
function code(x, y, z) return Float64(Float64(cosh(x) * Float64(y / x)) / z) end
function tmp = code(x, y, z) tmp = (cosh(x) * (y / x)) / z; end
code[x_, y_, z_] := N[(N[(N[Cosh[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{\cosh x \cdot \frac{y}{x}}{z}
\end{array}
(FPCore (x y z) :precision binary64 (if (<= (* (cosh x) (/ y x)) -5e-182) (* y (/ (/ (cosh x) x) z)) (/ (/ (* (cosh x) y) z) x)))
double code(double x, double y, double z) {
double tmp;
if ((cosh(x) * (y / x)) <= -5e-182) {
tmp = y * ((cosh(x) / x) / z);
} else {
tmp = ((cosh(x) * y) / z) / x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((cosh(x) * (y / x)) <= (-5d-182)) then
tmp = y * ((cosh(x) / x) / z)
else
tmp = ((cosh(x) * y) / z) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((Math.cosh(x) * (y / x)) <= -5e-182) {
tmp = y * ((Math.cosh(x) / x) / z);
} else {
tmp = ((Math.cosh(x) * y) / z) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (math.cosh(x) * (y / x)) <= -5e-182: tmp = y * ((math.cosh(x) / x) / z) else: tmp = ((math.cosh(x) * y) / z) / x return tmp
function code(x, y, z) tmp = 0.0 if (Float64(cosh(x) * Float64(y / x)) <= -5e-182) tmp = Float64(y * Float64(Float64(cosh(x) / x) / z)); else tmp = Float64(Float64(Float64(cosh(x) * y) / z) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((cosh(x) * (y / x)) <= -5e-182) tmp = y * ((cosh(x) / x) / z); else tmp = ((cosh(x) * y) / z) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[(N[Cosh[x], $MachinePrecision] * N[(y / x), $MachinePrecision]), $MachinePrecision], -5e-182], N[(y * N[(N[(N[Cosh[x], $MachinePrecision] / x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[Cosh[x], $MachinePrecision] * y), $MachinePrecision] / z), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\cosh x \cdot \frac{y}{x} \leq -5 \cdot 10^{-182}:\\
\;\;\;\;y \cdot \frac{\frac{\cosh x}{x}}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\cosh x \cdot y}{z}}{x}\\
\end{array}
\end{array}
if (*.f64 (cosh.f64 x) (/.f64 y x)) < -5.00000000000000024e-182Initial program 96.6%
associate-*l/96.6%
Simplified96.6%
associate-/r/91.1%
associate-/l*88.4%
*-commutative88.4%
expm1-log1p-u53.6%
expm1-udef37.6%
associate-/l*37.6%
times-frac41.0%
Applied egg-rr41.0%
expm1-def50.5%
expm1-log1p92.2%
associate-*r/96.6%
*-commutative96.6%
associate-*r/98.2%
Simplified98.2%
if -5.00000000000000024e-182 < (*.f64 (cosh.f64 x) (/.f64 y x)) Initial program 71.7%
associate-*l/71.7%
Simplified71.7%
associate-*r/98.7%
associate-*l/98.7%
Applied egg-rr98.7%
Final simplification98.5%
(FPCore (x y z) :precision binary64 (* y (/ (/ (cosh x) x) z)))
double code(double x, double y, double z) {
return y * ((cosh(x) / x) / z);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y * ((cosh(x) / x) / z)
end function
public static double code(double x, double y, double z) {
return y * ((Math.cosh(x) / x) / z);
}
def code(x, y, z): return y * ((math.cosh(x) / x) / z)
function code(x, y, z) return Float64(y * Float64(Float64(cosh(x) / x) / z)) end
function tmp = code(x, y, z) tmp = y * ((cosh(x) / x) / z); end
code[x_, y_, z_] := N[(y * N[(N[(N[Cosh[x], $MachinePrecision] / x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot \frac{\frac{\cosh x}{x}}{z}
\end{array}
Initial program 82.9%
associate-*l/82.9%
Simplified82.9%
associate-/r/78.8%
associate-/l*81.4%
*-commutative81.4%
expm1-log1p-u52.6%
expm1-udef40.1%
associate-/l*45.2%
times-frac47.6%
Applied egg-rr47.6%
expm1-def56.6%
expm1-log1p91.5%
associate-*r/96.5%
*-commutative96.5%
associate-*r/96.9%
Simplified96.9%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x z))))
(if (<= y 1e+29)
(+ (* 0.5 (* y (/ x z))) t_0)
(+ t_0 (* 0.5 (/ (* x y) z))))))
double code(double x, double y, double z) {
double t_0 = y / (x * z);
double tmp;
if (y <= 1e+29) {
tmp = (0.5 * (y * (x / z))) + t_0;
} else {
tmp = t_0 + (0.5 * ((x * y) / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * z)
if (y <= 1d+29) then
tmp = (0.5d0 * (y * (x / z))) + t_0
else
tmp = t_0 + (0.5d0 * ((x * y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * z);
double tmp;
if (y <= 1e+29) {
tmp = (0.5 * (y * (x / z))) + t_0;
} else {
tmp = t_0 + (0.5 * ((x * y) / z));
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * z) tmp = 0 if y <= 1e+29: tmp = (0.5 * (y * (x / z))) + t_0 else: tmp = t_0 + (0.5 * ((x * y) / z)) return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * z)) tmp = 0.0 if (y <= 1e+29) tmp = Float64(Float64(0.5 * Float64(y * Float64(x / z))) + t_0); else tmp = Float64(t_0 + Float64(0.5 * Float64(Float64(x * y) / z))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * z); tmp = 0.0; if (y <= 1e+29) tmp = (0.5 * (y * (x / z))) + t_0; else tmp = t_0 + (0.5 * ((x * y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 1e+29], N[(N[(0.5 * N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$0), $MachinePrecision], N[(t$95$0 + N[(0.5 * N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot z}\\
\mathbf{if}\;y \leq 10^{+29}:\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{z}\right) + t_0\\
\mathbf{else}:\\
\;\;\;\;t_0 + 0.5 \cdot \frac{x \cdot y}{z}\\
\end{array}
\end{array}
if y < 9.99999999999999914e28Initial program 79.7%
associate-*l/79.7%
Simplified79.7%
Taylor expanded in x around 0 63.0%
associate-/l*62.5%
associate-/r/69.8%
Applied egg-rr69.8%
if 9.99999999999999914e28 < y Initial program 92.7%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in x around 0 82.2%
Final simplification72.9%
(FPCore (x y z) :precision binary64 (if (<= x 1.6e+132) (/ (+ (/ y x) (* 0.5 (* x y))) z) (* 0.5 (* y (/ x z)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 1.6e+132) {
tmp = ((y / x) + (0.5 * (x * y))) / z;
} else {
tmp = 0.5 * (y * (x / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 1.6d+132) then
tmp = ((y / x) + (0.5d0 * (x * y))) / z
else
tmp = 0.5d0 * (y * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 1.6e+132) {
tmp = ((y / x) + (0.5 * (x * y))) / z;
} else {
tmp = 0.5 * (y * (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 1.6e+132: tmp = ((y / x) + (0.5 * (x * y))) / z else: tmp = 0.5 * (y * (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 1.6e+132) tmp = Float64(Float64(Float64(y / x) + Float64(0.5 * Float64(x * y))) / z); else tmp = Float64(0.5 * Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 1.6e+132) tmp = ((y / x) + (0.5 * (x * y))) / z; else tmp = 0.5 * (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 1.6e+132], N[(N[(N[(y / x), $MachinePrecision] + N[(0.5 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], N[(0.5 * N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.6 \cdot 10^{+132}:\\
\;\;\;\;\frac{\frac{y}{x} + 0.5 \cdot \left(x \cdot y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{z}\right)\\
\end{array}
\end{array}
if x < 1.5999999999999999e132Initial program 86.3%
Taylor expanded in x around 0 68.9%
if 1.5999999999999999e132 < x Initial program 59.4%
Taylor expanded in x around 0 55.3%
Taylor expanded in x around inf 55.3%
associate-/l*49.4%
Simplified49.4%
associate-/r/76.1%
Applied egg-rr76.1%
Final simplification69.8%
(FPCore (x y z) :precision binary64 (+ (* 0.5 (* y (/ x z))) (/ y (* x z))))
double code(double x, double y, double z) {
return (0.5 * (y * (x / z))) + (y / (x * z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (0.5d0 * (y * (x / z))) + (y / (x * z))
end function
public static double code(double x, double y, double z) {
return (0.5 * (y * (x / z))) + (y / (x * z));
}
def code(x, y, z): return (0.5 * (y * (x / z))) + (y / (x * z))
function code(x, y, z) return Float64(Float64(0.5 * Float64(y * Float64(x / z))) + Float64(y / Float64(x * z))) end
function tmp = code(x, y, z) tmp = (0.5 * (y * (x / z))) + (y / (x * z)); end
code[x_, y_, z_] := N[(N[(0.5 * N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
0.5 \cdot \left(y \cdot \frac{x}{z}\right) + \frac{y}{x \cdot z}
\end{array}
Initial program 82.9%
associate-*l/82.9%
Simplified82.9%
Taylor expanded in x around 0 67.8%
associate-/l*65.2%
associate-/r/70.7%
Applied egg-rr70.7%
Final simplification70.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.42) (not (<= x 1.4))) (* 0.5 (* y (/ x z))) (/ y (* x z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.42) || !(x <= 1.4)) {
tmp = 0.5 * (y * (x / z));
} else {
tmp = y / (x * z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.42d0)) .or. (.not. (x <= 1.4d0))) then
tmp = 0.5d0 * (y * (x / z))
else
tmp = y / (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.42) || !(x <= 1.4)) {
tmp = 0.5 * (y * (x / z));
} else {
tmp = y / (x * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.42) or not (x <= 1.4): tmp = 0.5 * (y * (x / z)) else: tmp = y / (x * z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.42) || !(x <= 1.4)) tmp = Float64(0.5 * Float64(y * Float64(x / z))); else tmp = Float64(y / Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.42) || ~((x <= 1.4))) tmp = 0.5 * (y * (x / z)); else tmp = y / (x * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.42], N[Not[LessEqual[x, 1.4]], $MachinePrecision]], N[(0.5 * N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y / N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.42 \lor \neg \left(x \leq 1.4\right):\\
\;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{x \cdot z}\\
\end{array}
\end{array}
if x < -1.4199999999999999 or 1.3999999999999999 < x Initial program 72.9%
Taylor expanded in x around 0 42.0%
Taylor expanded in x around inf 42.0%
associate-/l*36.9%
Simplified36.9%
associate-/r/47.8%
Applied egg-rr47.8%
if -1.4199999999999999 < x < 1.3999999999999999Initial program 93.1%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in x around 0 93.8%
Final simplification70.6%
(FPCore (x y z) :precision binary64 (if (or (<= z -5000.0) (not (<= z 0.0005))) (/ y (* x z)) (/ (/ y z) x)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5000.0) || !(z <= 0.0005)) {
tmp = y / (x * z);
} else {
tmp = (y / z) / x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-5000.0d0)) .or. (.not. (z <= 0.0005d0))) then
tmp = y / (x * z)
else
tmp = (y / z) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5000.0) || !(z <= 0.0005)) {
tmp = y / (x * z);
} else {
tmp = (y / z) / x;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5000.0) or not (z <= 0.0005): tmp = y / (x * z) else: tmp = (y / z) / x return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5000.0) || !(z <= 0.0005)) tmp = Float64(y / Float64(x * z)); else tmp = Float64(Float64(y / z) / x); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5000.0) || ~((z <= 0.0005))) tmp = y / (x * z); else tmp = (y / z) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5000.0], N[Not[LessEqual[z, 0.0005]], $MachinePrecision]], N[(y / N[(x * z), $MachinePrecision]), $MachinePrecision], N[(N[(y / z), $MachinePrecision] / x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5000 \lor \neg \left(z \leq 0.0005\right):\\
\;\;\;\;\frac{y}{x \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{y}{z}}{x}\\
\end{array}
\end{array}
if z < -5e3 or 5.0000000000000001e-4 < z Initial program 81.4%
associate-*l/81.4%
Simplified81.4%
Taylor expanded in x around 0 58.2%
if -5e3 < z < 5.0000000000000001e-4Initial program 84.4%
associate-*l/84.4%
Simplified84.4%
associate-*r/100.0%
associate-*l/100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 58.8%
Final simplification58.5%
(FPCore (x y z) :precision binary64 (/ y (* x z)))
double code(double x, double y, double z) {
return y / (x * z);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y / (x * z)
end function
public static double code(double x, double y, double z) {
return y / (x * z);
}
def code(x, y, z): return y / (x * z)
function code(x, y, z) return Float64(y / Float64(x * z)) end
function tmp = code(x, y, z) tmp = y / (x * z); end
code[x_, y_, z_] := N[(y / N[(x * z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{x \cdot z}
\end{array}
Initial program 82.9%
associate-*l/82.9%
Simplified82.9%
Taylor expanded in x around 0 49.5%
Final simplification49.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (/ (/ y z) x) (cosh x))))
(if (< y -4.618902267687042e-52)
t_0
(if (< y 1.038530535935153e-39) (/ (/ (* (cosh x) y) x) z) t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / z) / x) * cosh(x);
double tmp;
if (y < -4.618902267687042e-52) {
tmp = t_0;
} else if (y < 1.038530535935153e-39) {
tmp = ((cosh(x) * y) / x) / z;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / z) / x) * cosh(x)
if (y < (-4.618902267687042d-52)) then
tmp = t_0
else if (y < 1.038530535935153d-39) then
tmp = ((cosh(x) * y) / x) / z
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / z) / x) * Math.cosh(x);
double tmp;
if (y < -4.618902267687042e-52) {
tmp = t_0;
} else if (y < 1.038530535935153e-39) {
tmp = ((Math.cosh(x) * y) / x) / z;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / z) / x) * math.cosh(x) tmp = 0 if y < -4.618902267687042e-52: tmp = t_0 elif y < 1.038530535935153e-39: tmp = ((math.cosh(x) * y) / x) / z else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / z) / x) * cosh(x)) tmp = 0.0 if (y < -4.618902267687042e-52) tmp = t_0; elseif (y < 1.038530535935153e-39) tmp = Float64(Float64(Float64(cosh(x) * y) / x) / z); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / z) / x) * cosh(x); tmp = 0.0; if (y < -4.618902267687042e-52) tmp = t_0; elseif (y < 1.038530535935153e-39) tmp = ((cosh(x) * y) / x) / z; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / z), $MachinePrecision] / x), $MachinePrecision] * N[Cosh[x], $MachinePrecision]), $MachinePrecision]}, If[Less[y, -4.618902267687042e-52], t$95$0, If[Less[y, 1.038530535935153e-39], N[(N[(N[(N[Cosh[x], $MachinePrecision] * y), $MachinePrecision] / x), $MachinePrecision] / z), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\frac{y}{z}}{x} \cdot \cosh x\\
\mathbf{if}\;y < -4.618902267687042 \cdot 10^{-52}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;y < 1.038530535935153 \cdot 10^{-39}:\\
\;\;\;\;\frac{\frac{\cosh x \cdot y}{x}}{z}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
herbie shell --seed 2023311
(FPCore (x y z)
:name "Linear.Quaternion:$ctan from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< y -4.618902267687042e-52) (* (/ (/ y z) x) (cosh x)) (if (< y 1.038530535935153e-39) (/ (/ (* (cosh x) y) x) z) (* (/ (/ y z) x) (cosh x))))
(/ (* (cosh x) (/ y x)) z))