summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_isinf.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_isinf.sci')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_isinf.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_isinf.sci b/2.3-1/demos/Brijesh_Demos/test_isinf.sci
new file mode 100644
index 00000000..59be9759
--- /dev/null
+++ b/2.3-1/demos/Brijesh_Demos/test_isinf.sci
@@ -0,0 +1,6 @@
+function test_isinf
+ disp('Datatype: Double');
+ i1 = %inf;
+ o1 = isinf(float(i1));
+ disp(o1);
+endfunction