summaryrefslogtreecommitdiff
path: root/demos/Abhinav_Demos/nthroot1.sci
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Abhinav_Demos/nthroot1.sci')
-rw-r--r--demos/Abhinav_Demos/nthroot1.sci23
1 files changed, 23 insertions, 0 deletions
diff --git a/demos/Abhinav_Demos/nthroot1.sci b/demos/Abhinav_Demos/nthroot1.sci
new file mode 100644
index 0000000..201338b
--- /dev/null
+++ b/demos/Abhinav_Demos/nthroot1.sci
@@ -0,0 +1,23 @@
+// Test file for "nthroot" function for the data types double, float, double complex.
+
+
+function nthroot1()
+ b= [1,2,3,4;5,6,7,8]
+ c=[45,12,4,12; 23,34,5,6]
+ d= nthroot(b,c)
+disp(d)
+disp('')
+e=34
+f= nthroot(b,e)
+disp(f)
+disp('')
+k=nthroot(3.2123,12)
+disp(k)
+disp('')
+
+m= float(b)
+l= float(c)
+disp(nthroot(m,l))
+
+
+endfunction