double sindg(x) double x;
{ double y, z, zz; int j, sign;
/* make argument positive but save the sign */
sign = 1; if (x < 0) {
x = -x;
sign = -1;
}
if (x > lossth) {
mtherr("sindg", TLOSS); return (0.0);
}
y = floor(x / 45.0); /* integer part of x/PIO4 */
/* strip high bits of integer part to prevent integer overflow */
z = ldexp(y, -4);
z = floor(z); /* integer part of y/8 */
z = y - ldexp(z, 4); /* y - 16 * (y/16) */
j = z; /* convert to integer for tests on the phase angle */ /* map zeros to origin */ if (j & 1) {
j += 1;
y += 1.0;
}
j = j & 07; /* octant modulo 360 degrees */ /* reflect in x axis */ if (j > 3) {
sign = -sign;
j -= 4;
}
z = x - y * 45.0; /* x mod 45 degrees */
z *= PI180; /* multiply by pi/180 to convert to radians */
zz = z * z;
if ((j == 1) || (j == 2)) {
y = 1.0 - zz * polevl(zz, coscof, 6);
} else {
y = z + z * (zz * polevl(zz, sincof, 5));
}
if (sign < 0)
y = -y;
return (y);
}
double cosdg(x) double x;
{ double y, z, zz; int j, sign;
/* make argument positive */
sign = 1; if (x < 0)
x = -x;
if (x > lossth) {
mtherr("cosdg", TLOSS); return (0.0);
}
y = floor(x / 45.0);
z = ldexp(y, -4);
z = floor(z); /* integer part of y/8 */
z = y - ldexp(z, 4); /* y - 16 * (y/16) */
/* integer and fractional part modulo one octant */
j = z; if (j & 1) /* map zeros to origin */
{
j += 1;
y += 1.0;
}
j = j & 07; if (j > 3) {
j -= 4;
sign = -sign;
}
if (j > 1)
sign = -sign;
z = x - y * 45.0; /* x mod 45 degrees */
z *= PI180; /* multiply by pi/180 to convert to radians */
zz = z * z;
if ((j == 1) || (j == 2)) {
y = z + z * (zz * polevl(zz, sincof, 5));
} else {
y = 1.0 - zz * polevl(zz, coscof, 6);
}
if (sign < 0)
y = -y;
return (y);
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.