README This is the readme file for HW9: The program is used to compute sin(x) for a given list of input floats (redirectable from a file) all of which are between 0 and 1. two procedures in seperate input files: corsin.h:This One computes the sine using the CORDIC algorithm. msin.h: This one computes the sine using a truncated Maclaurin polynomial of order 7 in Horner form. After comparing the result, I can see the second method is more precise than the first one. Example to Use: ///////////////////////////////////////////////////// [ydai@gradient1 Robin_HW9]$ make clean rm -f Robin_HW9 [ydai@gradient1 Robin_HW9]$ ./Robin_HW9 ./Robin_HW9: Command not found. [ydai@gradient1 Robin_HW9]$ make gcc -lm -Os -o Robin_HW9 robin.c [ydai@gradient1 Robin_HW9]$ ./Robin_HW9 Wrong Input 0.2143254000 0.2126878829 0.2126883115 0.2126883115 0.7654563000 0.6928514588 0.6928658459 0.6928660932 0.2323532533 0.2302661036 0.2302681738 0.2302681738 0.2130000000 0.2113927523 0.2113930501 0.2113930501 0.7650000000 0.6925235955 0.6925367526 0.6925369986 0.0000000000 0.0000000000 0.0000000000 0.0000000000 Wrong Input 0.6540000000 0.6083577856 0.6083658309 0.6083658910 Wrong Input 0.2143254000 0.2126878829 0.2126883115 0.2126883115 0.7654563000 0.6928514588 0.6928658459 0.6928660932 0.2323532533 0.2302661036 0.2302681738 0.2302681738 0.2130000000 0.2113927523 0.2113930501 0.2113930501 0.7650000000 0.6925235955 0.6925367526 0.6925369986 0.0000000000 0.0000000000 0.0000000000 0.0000000000 Wrong Input 0.6540000000 0.6083577856 0.6083658309 0.6083658910 Wrong Input 0.2143254000 0.2126878829 0.2126883115 0.2126883115 0.7654563000 0.6928514588 0.6928658459 0.6928660932 0.2323532533 0.2302661036 0.2302681738 0.2302681738 0.2130000000 0.2113927523 0.2113930501 0.2113930501 0.7650000000 0.6925235955 0.6925367526 0.6925369986 0.0000000000 0.0000000000 0.0000000000 0.0000000000 Wrong Input 0.6540000000 0.6083577856 0.6083658309 0.6083658910 Wrong Input 0.2143254000 0.2126878829 0.2126883115 0.2126883115 0.7654563000 0.6928514588 0.6928658459 0.6928660932 0.2323532533 0.2302661036 0.2302681738 0.2302681738 0.2130000000 0.2113927523 0.2113930501 0.2113930501 0.7650000000 0.6925235955 0.6925367526 0.6925369986 0.0000000000 0.0000000000 0.0000000000 0.0000000000 Wrong Input 0.6540000000 0.6083577856 0.6083658309 0.6083658910 Wrong Input 0.2143254000 0.2126878829 0.2126883115 0.2126883115 0.7654563000 0.6928514588 0.6928658459 0.6928660932 0.2323532533 0.2302661036 0.2302681738 0.2302681738 0.2130000000 0.2113927523 0.2113930501 0.2113930501 0.7650000000 0.6925235955 0.6925367526 0.6925369986 0.0000000000 0.0000000000 0.0000000000 0.0000000000 Wrong Input 0.6540000000 0.6083577856 0.6083658309 0.6083658910 [ydai@gradient1 Robin_HW9]$ /////////////////////////////////////////////////// testing file is Test.txt 7/25/2009 Robin