Browse Source

add function to get euler number

master
fdai7848 11 months ago
parent
commit
ea2679568f
  1. 4
      src/reihen.c
  2. 1
      src/reihen.h

4
src/reihen.c

@ -24,4 +24,8 @@ double exponential(double x){
sum += (1.0/fac(i)*(powerD(i,x))); sum += (1.0/fac(i)*(powerD(i,x)));
} }
return sum; return sum;
}
double euler(){
return exponential(1);
} }

1
src/reihen.h

@ -2,5 +2,6 @@
#define REIHEN_H #define REIHEN_H
double exponential(double x); double exponential(double x);
double euler();
#endif // reihen.h #endif // reihen.h
Loading…
Cancel
Save