summaryrefslogtreecommitdiff
path: root/src/c/elementaryFunctions/cos
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/elementaryFunctions/cos')
-rw-r--r--src/c/elementaryFunctions/cos/i16coss.c2
-rw-r--r--src/c/elementaryFunctions/cos/i8coss.c2
-rw-r--r--src/c/elementaryFunctions/cos/u16coss.c2
-rw-r--r--src/c/elementaryFunctions/cos/u8coss.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/c/elementaryFunctions/cos/i16coss.c b/src/c/elementaryFunctions/cos/i16coss.c
index ce345d7..787f713 100644
--- a/src/c/elementaryFunctions/cos/i16coss.c
+++ b/src/c/elementaryFunctions/cos/i16coss.c
@@ -14,5 +14,5 @@
#include "cos.h"
float i16coss(int16 x) {
- return (cos(x));
+ return (cos((double)x));
}
diff --git a/src/c/elementaryFunctions/cos/i8coss.c b/src/c/elementaryFunctions/cos/i8coss.c
index 02d8216..4b344e1 100644
--- a/src/c/elementaryFunctions/cos/i8coss.c
+++ b/src/c/elementaryFunctions/cos/i8coss.c
@@ -14,5 +14,5 @@
#include "cos.h"
float i8coss(int8 x) {
- return (cos(x));
+ return (cos((double)x));
}
diff --git a/src/c/elementaryFunctions/cos/u16coss.c b/src/c/elementaryFunctions/cos/u16coss.c
index c4c8616..fb25ac5 100644
--- a/src/c/elementaryFunctions/cos/u16coss.c
+++ b/src/c/elementaryFunctions/cos/u16coss.c
@@ -14,5 +14,5 @@
#include "cos.h"
float u16coss(uint16 x) {
- return (cos(x));
+ return (cos((double)x));
}
diff --git a/src/c/elementaryFunctions/cos/u8coss.c b/src/c/elementaryFunctions/cos/u8coss.c
index 30400c1..26e2eba 100644
--- a/src/c/elementaryFunctions/cos/u8coss.c
+++ b/src/c/elementaryFunctions/cos/u8coss.c
@@ -14,5 +14,5 @@
#include "cos.h"
float u8coss(uint8 x) {
- return (cos(x));
+ return (cos((double)x));
}