because i got my angle slightly wrong mine is more like 57 or something... anyway it proves his calculations are correct. and mine are the wrongest
(,
Mon 8 Dec 2008, 7:03,
archived)
(x = 8 / tan 55, or x = 8 * tan 35) and got the same answer as kebab, who is a MATHEMOTISHUM. We can share the Nobel Prize.
(,
Mon 8 Dec 2008, 8:08,
archived)
if you're under 40 we may get a feilds medal...
(,
Mon 8 Dec 2008, 8:19,
archived)
$ cat >1.c
#include <stdio.h>
#include <math.h>
#define PI 3.1415926
int main(void)
{
double theta = (35.0 / 180) * PI;
double X = 8 * tan(theta);
int Xft = floor(X);
double Xin = (X - Xft) * 12;
printf("X = %f feet, or %d feet %f inches\n", X, Xft, Xin);
return 0;
}
$ gcc 1.c
$ ./a.out
X = 5.601660 feet, or 5 feet 7.219922 inches
$
(,
Mon 8 Dec 2008, 10:55,
archived)
#include <stdio.h>
#include <math.h>
#define PI 3.1415926
int main(void)
{
double theta = (35.0 / 180) * PI;
double X = 8 * tan(theta);
int Xft = floor(X);
double Xin = (X - Xft) * 12;
printf("X = %f feet, or %d feet %f inches\n", X, Xft, Xin);
return 0;
}
$ gcc 1.c
$ ./a.out
X = 5.601660 feet, or 5 feet 7.219922 inches
$