\[{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}
\]
↓
\[\begin{array}{l}
t_0 := \frac{angle}{180} \cdot \pi\\
{\left(\sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right) \cdot a\right)}^{2} + {\left(b \cdot \left(\frac{1 + \frac{1 + \cos \left(\frac{angle}{180} \cdot \left(\pi \cdot 4\right)\right)}{2} \cdot \frac{1}{\cos \left(t_0 \cdot -2\right)}}{2} \cdot \frac{1}{\cos t_0}\right)\right)}^{2}
\end{array}
\]
(FPCore (a b angle)
:precision binary64
(+
(pow (* a (sin (* (/ angle 180.0) PI))) 2.0)
(pow (* b (cos (* (/ angle 180.0) PI))) 2.0)))
↓
(FPCore (a b angle)
:precision binary64
(let* ((t_0 (* (/ angle 180.0) PI)))
(+
(pow (* (sin (* angle (* 0.005555555555555556 PI))) a) 2.0)
(pow
(*
b
(*
(/
(+
1.0
(*
(/ (+ 1.0 (cos (* (/ angle 180.0) (* PI 4.0)))) 2.0)
(/ 1.0 (cos (* t_0 -2.0)))))
2.0)
(/ 1.0 (cos t_0))))
2.0))))double code(double a, double b, double angle) {
return pow((a * sin(((angle / 180.0) * ((double) M_PI)))), 2.0) + pow((b * cos(((angle / 180.0) * ((double) M_PI)))), 2.0);
}
↓
double code(double a, double b, double angle) {
double t_0 = (angle / 180.0) * ((double) M_PI);
return pow((sin((angle * (0.005555555555555556 * ((double) M_PI)))) * a), 2.0) + pow((b * (((1.0 + (((1.0 + cos(((angle / 180.0) * (((double) M_PI) * 4.0)))) / 2.0) * (1.0 / cos((t_0 * -2.0))))) / 2.0) * (1.0 / cos(t_0)))), 2.0);
}
public static double code(double a, double b, double angle) {
return Math.pow((a * Math.sin(((angle / 180.0) * Math.PI))), 2.0) + Math.pow((b * Math.cos(((angle / 180.0) * Math.PI))), 2.0);
}
↓
public static double code(double a, double b, double angle) {
double t_0 = (angle / 180.0) * Math.PI;
return Math.pow((Math.sin((angle * (0.005555555555555556 * Math.PI))) * a), 2.0) + Math.pow((b * (((1.0 + (((1.0 + Math.cos(((angle / 180.0) * (Math.PI * 4.0)))) / 2.0) * (1.0 / Math.cos((t_0 * -2.0))))) / 2.0) * (1.0 / Math.cos(t_0)))), 2.0);
}
def code(a, b, angle):
return math.pow((a * math.sin(((angle / 180.0) * math.pi))), 2.0) + math.pow((b * math.cos(((angle / 180.0) * math.pi))), 2.0)
↓
def code(a, b, angle):
t_0 = (angle / 180.0) * math.pi
return math.pow((math.sin((angle * (0.005555555555555556 * math.pi))) * a), 2.0) + math.pow((b * (((1.0 + (((1.0 + math.cos(((angle / 180.0) * (math.pi * 4.0)))) / 2.0) * (1.0 / math.cos((t_0 * -2.0))))) / 2.0) * (1.0 / math.cos(t_0)))), 2.0)
function code(a, b, angle)
return Float64((Float64(a * sin(Float64(Float64(angle / 180.0) * pi))) ^ 2.0) + (Float64(b * cos(Float64(Float64(angle / 180.0) * pi))) ^ 2.0))
end
↓
function code(a, b, angle)
t_0 = Float64(Float64(angle / 180.0) * pi)
return Float64((Float64(sin(Float64(angle * Float64(0.005555555555555556 * pi))) * a) ^ 2.0) + (Float64(b * Float64(Float64(Float64(1.0 + Float64(Float64(Float64(1.0 + cos(Float64(Float64(angle / 180.0) * Float64(pi * 4.0)))) / 2.0) * Float64(1.0 / cos(Float64(t_0 * -2.0))))) / 2.0) * Float64(1.0 / cos(t_0)))) ^ 2.0))
end
function tmp = code(a, b, angle)
tmp = ((a * sin(((angle / 180.0) * pi))) ^ 2.0) + ((b * cos(((angle / 180.0) * pi))) ^ 2.0);
end
↓
function tmp = code(a, b, angle)
t_0 = (angle / 180.0) * pi;
tmp = ((sin((angle * (0.005555555555555556 * pi))) * a) ^ 2.0) + ((b * (((1.0 + (((1.0 + cos(((angle / 180.0) * (pi * 4.0)))) / 2.0) * (1.0 / cos((t_0 * -2.0))))) / 2.0) * (1.0 / cos(t_0)))) ^ 2.0);
end
code[a_, b_, angle_] := N[(N[Power[N[(a * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]
↓
code[a_, b_, angle_] := Block[{t$95$0 = N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]}, N[(N[Power[N[(N[Sin[N[(angle * N[(0.005555555555555556 * Pi), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * a), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[(N[(N[(1.0 + N[(N[(N[(1.0 + N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * N[(Pi * 4.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision] * N[(1.0 / N[Cos[N[(t$95$0 * -2.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 2.0), $MachinePrecision] * N[(1.0 / N[Cos[t$95$0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]]
{\left(a \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}
↓
\begin{array}{l}
t_0 := \frac{angle}{180} \cdot \pi\\
{\left(\sin \left(angle \cdot \left(0.005555555555555556 \cdot \pi\right)\right) \cdot a\right)}^{2} + {\left(b \cdot \left(\frac{1 + \frac{1 + \cos \left(\frac{angle}{180} \cdot \left(\pi \cdot 4\right)\right)}{2} \cdot \frac{1}{\cos \left(t_0 \cdot -2\right)}}{2} \cdot \frac{1}{\cos t_0}\right)\right)}^{2}
\end{array}