summaryrefslogtreecommitdiff
path: root/src/auxiliaryFunctions/includes/isnan.h
diff options
context:
space:
mode:
authorjofret2007-05-07 14:12:10 +0000
committerjofret2007-05-07 14:12:10 +0000
commit5e99f6ee73b31f683d5b4fb5f88e1bb0b683a9e8 (patch)
treea62c8792008ff2478b2ab0b3273fa35edac2aaa1 /src/auxiliaryFunctions/includes/isnan.h
parentd4c521386b82ea3e29762a845bc4483f57bc056a (diff)
downloadscilab2c-5e99f6ee73b31f683d5b4fb5f88e1bb0b683a9e8.tar.gz
scilab2c-5e99f6ee73b31f683d5b4fb5f88e1bb0b683a9e8.tar.bz2
scilab2c-5e99f6ee73b31f683d5b4fb5f88e1bb0b683a9e8.zip
Is Nan : New function
Must improve nan so far as complex numbers are concerned !
Diffstat (limited to 'src/auxiliaryFunctions/includes/isnan.h')
-rw-r--r--src/auxiliaryFunctions/includes/isnan.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/auxiliaryFunctions/includes/isnan.h b/src/auxiliaryFunctions/includes/isnan.h
new file mode 100644
index 00000000..e7ed1583
--- /dev/null
+++ b/src/auxiliaryFunctions/includes/isnan.h
@@ -0,0 +1,41 @@
+/*
+** -*- C -*-
+**
+** isnan.h
+** Made by Bruno JOFRET <bruno.jofret@inria.fr>
+**
+** Started on Thu Feb 8 10:12:17 2007 jofret
+** Last update Thu Apr 26 17:10:23 2007 jofret
+**
+** Copyright INRIA 2007
+*/
+
+#ifndef __IS_NAN_H__
+#define __IS_NAN_H__
+
+#include <stdbool.h>
+#include <math.h>
+
+#include "floatComplex.h"
+#include "doubleComplex.h"
+
+/*
+** \brief Float Is Nan function
+*/
+bool sisnans(float x);
+
+/*
+** \brief Double Is Nan function
+*/
+bool disnans(double x);
+
+/*
+** \brief Float Complex Is Nan function
+*/
+bool cisnans(floatComplex z);
+
+/*
+** \brief Double Complex Is Nan function
+*/
+bool zisnans(doubleComplex z);
+#endif /* !__IS_NAN_H__ */