diff options
Diffstat (limited to 'libs/libsin.c')
-rw-r--r-- | libs/libsin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/libsin.c b/libs/libsin.c new file mode 100644 index 0000000..34200af --- /dev/null +++ b/libs/libsin.c @@ -0,0 +1,7 @@ + +#include <math.h> + +// calculate sine +double f(double x) { + return sin(x); +} |