Browse Source

add tangens function

master
fdai7848 11 months ago
parent
commit
b20392a5ac
  1. 11
      src/reihen.c

11
src/reihen.c

@ -79,4 +79,15 @@ double cosD(double degrees){
else sum -= currvalue; else sum -= currvalue;
} }
return sum; return sum;
}
double tanD(double degrees){
if (degrees>=360.0){
degrees = squashDegreesTo360(degrees);
}
if(degrees == 90.0 || degrees == 270.0){
return -1.0;
}
return sinD(degrees)/cosD(degrees);
} }
Loading…
Cancel
Save