\[\frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} \cdot \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} - \left(4 \cdot \frac{\frac{{\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}}{x-scale}}{x-scale}\right) \cdot \frac{\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale}}{y-scale}
\]
↓
\[\begin{array}{l}
t_0 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
t_1 := \cos t_0\\
t_2 := \sin t_0\\
\mathbf{if}\;y-scale \leq -2.5 \cdot 10^{+74}:\\
\;\;\;\;0\\
\mathbf{elif}\;y-scale \leq -4.4 \cdot 10^{-161}:\\
\;\;\;\;\frac{{b}^{2} \cdot \left(-8 \cdot \frac{{t_2}^{2} \cdot \left({a}^{2} \cdot {t_1}^{2}\right)}{{y-scale}^{2}} - 4 \cdot \left(\frac{{a}^{2} \cdot {t_1}^{4}}{{y-scale}^{2}} + \frac{{a}^{2} \cdot {t_2}^{4}}{{y-scale}^{2}}\right)\right)}{{x-scale}^{2}}\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}
\]
(FPCore (a b angle x-scale y-scale)
:precision binary64
(-
(*
(/
(/
(*
(* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI)))
(cos (* (/ angle 180.0) PI)))
x-scale)
y-scale)
(/
(/
(*
(* (* 2.0 (- (pow b 2.0) (pow a 2.0))) (sin (* (/ angle 180.0) PI)))
(cos (* (/ angle 180.0) PI)))
x-scale)
y-scale))
(*
(*
4.0
(/
(/
(+
(pow (* a (sin (* (/ angle 180.0) PI))) 2.0)
(pow (* b (cos (* (/ angle 180.0) PI))) 2.0))
x-scale)
x-scale))
(/
(/
(+
(pow (* a (cos (* (/ angle 180.0) PI))) 2.0)
(pow (* b (sin (* (/ angle 180.0) PI))) 2.0))
y-scale)
y-scale))))↓
(FPCore (a b angle x-scale y-scale)
:precision binary64
(let* ((t_0 (* PI (* angle 0.005555555555555556)))
(t_1 (cos t_0))
(t_2 (sin t_0)))
(if (<= y-scale -2.5e+74)
0.0
(if (<= y-scale -4.4e-161)
(/
(*
(pow b 2.0)
(-
(*
-8.0
(/
(* (pow t_2 2.0) (* (pow a 2.0) (pow t_1 2.0)))
(pow y-scale 2.0)))
(*
4.0
(+
(/ (* (pow a 2.0) (pow t_1 4.0)) (pow y-scale 2.0))
(/ (* (pow a 2.0) (pow t_2 4.0)) (pow y-scale 2.0))))))
(pow x-scale 2.0))
0.0))))double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
return ((((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(((angle / 180.0) * ((double) M_PI)))) * cos(((angle / 180.0) * ((double) M_PI)))) / x_45_scale) / y_45_scale) * (((((2.0 * (pow(b, 2.0) - pow(a, 2.0))) * sin(((angle / 180.0) * ((double) M_PI)))) * cos(((angle / 180.0) * ((double) M_PI)))) / x_45_scale) / y_45_scale)) - ((4.0 * (((pow((a * sin(((angle / 180.0) * ((double) M_PI)))), 2.0) + pow((b * cos(((angle / 180.0) * ((double) M_PI)))), 2.0)) / x_45_scale) / x_45_scale)) * (((pow((a * cos(((angle / 180.0) * ((double) M_PI)))), 2.0) + pow((b * sin(((angle / 180.0) * ((double) M_PI)))), 2.0)) / y_45_scale) / y_45_scale));
}
↓
double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = ((double) M_PI) * (angle * 0.005555555555555556);
double t_1 = cos(t_0);
double t_2 = sin(t_0);
double tmp;
if (y_45_scale <= -2.5e+74) {
tmp = 0.0;
} else if (y_45_scale <= -4.4e-161) {
tmp = (pow(b, 2.0) * ((-8.0 * ((pow(t_2, 2.0) * (pow(a, 2.0) * pow(t_1, 2.0))) / pow(y_45_scale, 2.0))) - (4.0 * (((pow(a, 2.0) * pow(t_1, 4.0)) / pow(y_45_scale, 2.0)) + ((pow(a, 2.0) * pow(t_2, 4.0)) / pow(y_45_scale, 2.0)))))) / pow(x_45_scale, 2.0);
} else {
tmp = 0.0;
}
return tmp;
}
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
return ((((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(((angle / 180.0) * Math.PI))) * Math.cos(((angle / 180.0) * Math.PI))) / x_45_scale) / y_45_scale) * (((((2.0 * (Math.pow(b, 2.0) - Math.pow(a, 2.0))) * Math.sin(((angle / 180.0) * Math.PI))) * Math.cos(((angle / 180.0) * Math.PI))) / x_45_scale) / y_45_scale)) - ((4.0 * (((Math.pow((a * Math.sin(((angle / 180.0) * Math.PI))), 2.0) + Math.pow((b * Math.cos(((angle / 180.0) * Math.PI))), 2.0)) / x_45_scale) / x_45_scale)) * (((Math.pow((a * Math.cos(((angle / 180.0) * Math.PI))), 2.0) + Math.pow((b * Math.sin(((angle / 180.0) * Math.PI))), 2.0)) / y_45_scale) / y_45_scale));
}
↓
public static double code(double a, double b, double angle, double x_45_scale, double y_45_scale) {
double t_0 = Math.PI * (angle * 0.005555555555555556);
double t_1 = Math.cos(t_0);
double t_2 = Math.sin(t_0);
double tmp;
if (y_45_scale <= -2.5e+74) {
tmp = 0.0;
} else if (y_45_scale <= -4.4e-161) {
tmp = (Math.pow(b, 2.0) * ((-8.0 * ((Math.pow(t_2, 2.0) * (Math.pow(a, 2.0) * Math.pow(t_1, 2.0))) / Math.pow(y_45_scale, 2.0))) - (4.0 * (((Math.pow(a, 2.0) * Math.pow(t_1, 4.0)) / Math.pow(y_45_scale, 2.0)) + ((Math.pow(a, 2.0) * Math.pow(t_2, 4.0)) / Math.pow(y_45_scale, 2.0)))))) / Math.pow(x_45_scale, 2.0);
} else {
tmp = 0.0;
}
return tmp;
}
def code(a, b, angle, x_45_scale, y_45_scale):
return ((((((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(((angle / 180.0) * math.pi))) * math.cos(((angle / 180.0) * math.pi))) / x_45_scale) / y_45_scale) * (((((2.0 * (math.pow(b, 2.0) - math.pow(a, 2.0))) * math.sin(((angle / 180.0) * math.pi))) * math.cos(((angle / 180.0) * math.pi))) / x_45_scale) / y_45_scale)) - ((4.0 * (((math.pow((a * math.sin(((angle / 180.0) * math.pi))), 2.0) + math.pow((b * math.cos(((angle / 180.0) * math.pi))), 2.0)) / x_45_scale) / x_45_scale)) * (((math.pow((a * math.cos(((angle / 180.0) * math.pi))), 2.0) + math.pow((b * math.sin(((angle / 180.0) * math.pi))), 2.0)) / y_45_scale) / y_45_scale))
↓
def code(a, b, angle, x_45_scale, y_45_scale):
t_0 = math.pi * (angle * 0.005555555555555556)
t_1 = math.cos(t_0)
t_2 = math.sin(t_0)
tmp = 0
if y_45_scale <= -2.5e+74:
tmp = 0.0
elif y_45_scale <= -4.4e-161:
tmp = (math.pow(b, 2.0) * ((-8.0 * ((math.pow(t_2, 2.0) * (math.pow(a, 2.0) * math.pow(t_1, 2.0))) / math.pow(y_45_scale, 2.0))) - (4.0 * (((math.pow(a, 2.0) * math.pow(t_1, 4.0)) / math.pow(y_45_scale, 2.0)) + ((math.pow(a, 2.0) * math.pow(t_2, 4.0)) / math.pow(y_45_scale, 2.0)))))) / math.pow(x_45_scale, 2.0)
else:
tmp = 0.0
return tmp
function code(a, b, angle, x_45_scale, y_45_scale)
return Float64(Float64(Float64(Float64(Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(Float64(Float64(angle / 180.0) * pi))) * cos(Float64(Float64(angle / 180.0) * pi))) / x_45_scale) / y_45_scale) * Float64(Float64(Float64(Float64(Float64(2.0 * Float64((b ^ 2.0) - (a ^ 2.0))) * sin(Float64(Float64(angle / 180.0) * pi))) * cos(Float64(Float64(angle / 180.0) * pi))) / x_45_scale) / y_45_scale)) - Float64(Float64(4.0 * Float64(Float64(Float64((Float64(a * sin(Float64(Float64(angle / 180.0) * pi))) ^ 2.0) + (Float64(b * cos(Float64(Float64(angle / 180.0) * pi))) ^ 2.0)) / x_45_scale) / x_45_scale)) * Float64(Float64(Float64((Float64(a * cos(Float64(Float64(angle / 180.0) * pi))) ^ 2.0) + (Float64(b * sin(Float64(Float64(angle / 180.0) * pi))) ^ 2.0)) / y_45_scale) / y_45_scale)))
end
↓
function code(a, b, angle, x_45_scale, y_45_scale)
t_0 = Float64(pi * Float64(angle * 0.005555555555555556))
t_1 = cos(t_0)
t_2 = sin(t_0)
tmp = 0.0
if (y_45_scale <= -2.5e+74)
tmp = 0.0;
elseif (y_45_scale <= -4.4e-161)
tmp = Float64(Float64((b ^ 2.0) * Float64(Float64(-8.0 * Float64(Float64((t_2 ^ 2.0) * Float64((a ^ 2.0) * (t_1 ^ 2.0))) / (y_45_scale ^ 2.0))) - Float64(4.0 * Float64(Float64(Float64((a ^ 2.0) * (t_1 ^ 4.0)) / (y_45_scale ^ 2.0)) + Float64(Float64((a ^ 2.0) * (t_2 ^ 4.0)) / (y_45_scale ^ 2.0)))))) / (x_45_scale ^ 2.0));
else
tmp = 0.0;
end
return tmp
end
function tmp = code(a, b, angle, x_45_scale, y_45_scale)
tmp = ((((((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(((angle / 180.0) * pi))) * cos(((angle / 180.0) * pi))) / x_45_scale) / y_45_scale) * (((((2.0 * ((b ^ 2.0) - (a ^ 2.0))) * sin(((angle / 180.0) * pi))) * cos(((angle / 180.0) * pi))) / x_45_scale) / y_45_scale)) - ((4.0 * (((((a * sin(((angle / 180.0) * pi))) ^ 2.0) + ((b * cos(((angle / 180.0) * pi))) ^ 2.0)) / x_45_scale) / x_45_scale)) * (((((a * cos(((angle / 180.0) * pi))) ^ 2.0) + ((b * sin(((angle / 180.0) * pi))) ^ 2.0)) / y_45_scale) / y_45_scale));
end
↓
function tmp_2 = code(a, b, angle, x_45_scale, y_45_scale)
t_0 = pi * (angle * 0.005555555555555556);
t_1 = cos(t_0);
t_2 = sin(t_0);
tmp = 0.0;
if (y_45_scale <= -2.5e+74)
tmp = 0.0;
elseif (y_45_scale <= -4.4e-161)
tmp = ((b ^ 2.0) * ((-8.0 * (((t_2 ^ 2.0) * ((a ^ 2.0) * (t_1 ^ 2.0))) / (y_45_scale ^ 2.0))) - (4.0 * ((((a ^ 2.0) * (t_1 ^ 4.0)) / (y_45_scale ^ 2.0)) + (((a ^ 2.0) * (t_2 ^ 4.0)) / (y_45_scale ^ 2.0)))))) / (x_45_scale ^ 2.0);
else
tmp = 0.0;
end
tmp_2 = tmp;
end
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := N[(N[(N[(N[(N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision] * N[(N[(N[(N[(N[(2.0 * N[(N[Power[b, 2.0], $MachinePrecision] - N[Power[a, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / x$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]), $MachinePrecision] - N[(N[(4.0 * N[(N[(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] / x$45$scale), $MachinePrecision] / x$45$scale), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[Power[N[(a * N[Cos[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] + N[Power[N[(b * N[Sin[N[(N[(angle / 180.0), $MachinePrecision] * Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] / y$45$scale), $MachinePrecision] / y$45$scale), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[a_, b_, angle_, x$45$scale_, y$45$scale_] := Block[{t$95$0 = N[(Pi * N[(angle * 0.005555555555555556), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[Cos[t$95$0], $MachinePrecision]}, Block[{t$95$2 = N[Sin[t$95$0], $MachinePrecision]}, If[LessEqual[y$45$scale, -2.5e+74], 0.0, If[LessEqual[y$45$scale, -4.4e-161], N[(N[(N[Power[b, 2.0], $MachinePrecision] * N[(N[(-8.0 * N[(N[(N[Power[t$95$2, 2.0], $MachinePrecision] * N[(N[Power[a, 2.0], $MachinePrecision] * N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[y$45$scale, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(4.0 * N[(N[(N[(N[Power[a, 2.0], $MachinePrecision] * N[Power[t$95$1, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[y$45$scale, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(N[Power[a, 2.0], $MachinePrecision] * N[Power[t$95$2, 4.0], $MachinePrecision]), $MachinePrecision] / N[Power[y$45$scale, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[x$45$scale, 2.0], $MachinePrecision]), $MachinePrecision], 0.0]]]]]
\frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} \cdot \frac{\frac{\left(\left(2 \cdot \left({b}^{2} - {a}^{2}\right)\right) \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right) \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)}{x-scale}}{y-scale} - \left(4 \cdot \frac{\frac{{\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}}{x-scale}}{x-scale}\right) \cdot \frac{\frac{{\left(a \cdot \cos \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2} + {\left(b \cdot \sin \left(\frac{angle}{180} \cdot \pi\right)\right)}^{2}}{y-scale}}{y-scale}
↓
\begin{array}{l}
t_0 := \pi \cdot \left(angle \cdot 0.005555555555555556\right)\\
t_1 := \cos t_0\\
t_2 := \sin t_0\\
\mathbf{if}\;y-scale \leq -2.5 \cdot 10^{+74}:\\
\;\;\;\;0\\
\mathbf{elif}\;y-scale \leq -4.4 \cdot 10^{-161}:\\
\;\;\;\;\frac{{b}^{2} \cdot \left(-8 \cdot \frac{{t_2}^{2} \cdot \left({a}^{2} \cdot {t_1}^{2}\right)}{{y-scale}^{2}} - 4 \cdot \left(\frac{{a}^{2} \cdot {t_1}^{4}}{{y-scale}^{2}} + \frac{{a}^{2} \cdot {t_2}^{4}}{{y-scale}^{2}}\right)\right)}{{x-scale}^{2}}\\
\mathbf{else}:\\
\;\;\;\;0\\
\end{array}