diff --git a/math/exp.c b/math/exp.c index dbe5080..e893a76 100644 --- a/math/exp.c +++ b/math/exp.c @@ -9,9 +9,8 @@ I was stuck on how to actually implement the Taylor series without it getting far too big for even a long double, and I'm not sure I ever would have thought to just break it out recursively like this. Instead of each - term being x^n/n!, where we have to figure out both x^n and n!, both of which - could be massive, we instead say that it's (x/n+1)*(nth term), with a base - case (1st term) of x/1! = x. Pretty clever, really. + term being x^n/n!, this says that it's (x/n+1)*(nth term), with a base case + of x/1! = x. Pretty clever, really. Also, really glad I know how to at least read a basic FORTRAN program. This probably would have been a little more annoying if I didn't. diff --git a/math/sin.c b/math/sin.c deleted file mode 100644 index 867604b..0000000 --- a/math/sin.c +++ /dev/null @@ -1,5 +0,0 @@ -#include - -double sin(double x) { - return cos(x - M_PI_2); -} \ No newline at end of file diff --git a/math/tan.c b/math/tan.c deleted file mode 100644 index 3f1b86f..0000000 --- a/math/tan.c +++ /dev/null @@ -1,5 +0,0 @@ -#include - -double tan(double x) { - return (cos(x - M_PI_2) / cos(x)) -} \ No newline at end of file