Browse Source

add asin function

master^2
fdai7848 11 months ago
parent
commit
5410a1f7ee
  1. 10
      src/reihen.c
  2. 2
      src/reihen.h

10
src/reihen.c

@ -95,3 +95,13 @@ double atanD(double degrees){
return sum; return sum;
} }
double asinD(double degrees){
if (degrees>=360.0){
degrees = squashDegreesTo360(degrees);
}
double sum = 0.0;
double radian = radians(degrees);
return atanD(radian/powerD(0.5,1-powerD(2,degrees)));
}

2
src/reihen.h

@ -7,5 +7,7 @@ double pi();
double radians(double degrees); double radians(double degrees);
double sinD(double degrees); double sinD(double degrees);
double cosD(double degrees); double cosD(double degrees);
double atanD(double degrees);
double asinD(double degrees);
#endif // reihen.h #endif // reihen.h
Loading…
Cancel
Save