Browse Source

Merge branch 'Reihen-anpassungen' into 'master'

add asin function

See merge request fdai7848/Linkes-Twix!17
master
fdai7848 11 months ago
parent
commit
1959a9ac6b
  1. 10
      src/reihen.c
  2. 2
      src/reihen.h

10
src/reihen.c

@ -94,4 +94,14 @@ double atanD(double degrees){
}
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 sinD(double degrees);
double cosD(double degrees);
double atanD(double degrees);
double asinD(double degrees);
#endif // reihen.h
Loading…
Cancel
Save