home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_200
/
293_01
/
t3.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-08-25
|
242b
|
12 lines
#include <stdio.h>
#include <math.h>
main()
{
int ang;
for (ang = 0; ang < 90; ang += 5) {
printf("ang = %d ixmax = %d, %f\n", ang, (255*ang)/90,
127.5*(1.0 + sqrt(2.0)*sin(((double) ang - 45.0)*3.14/180.)));
}
}