diff options
author | Abhinav Dronamraju | 2017-07-27 18:16:59 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-27 18:16:59 +0530 |
commit | cd41972eb98c3c69f74d6788e76e7789a846e53a (patch) | |
tree | 0b9901799df41b2571a24f96f733257b56b57f1c /2.3-1/demos/Abhinav_Demos/nth_root.sci | |
parent | bcbe9d1aae596e2a3e1669d0308bfa9003365972 (diff) | |
download | Scilab2C-cd41972eb98c3c69f74d6788e76e7789a846e53a.tar.gz Scilab2C-cd41972eb98c3c69f74d6788e76e7789a846e53a.tar.bz2 Scilab2C-cd41972eb98c3c69f74d6788e76e7789a846e53a.zip |
Nan Median Added
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/nth_root.sci')
-rw-r--r-- | 2.3-1/demos/Abhinav_Demos/nth_root.sci | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/nth_root.sci b/2.3-1/demos/Abhinav_Demos/nth_root.sci new file mode 100644 index 00000000..13e4223e --- /dev/null +++ b/2.3-1/demos/Abhinav_Demos/nth_root.sci @@ -0,0 +1,23 @@ +// Test file for "nthroot" function for the data types double, float, double complex. + + +function nth_root() + 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 |