diff options
author | Abhinav Dronamraju | 2017-07-20 21:48:58 +0530 |
---|---|---|
committer | Abhinav Dronamraju | 2017-07-20 21:48:58 +0530 |
commit | 1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb (patch) | |
tree | c22ebdb6dc9890adea15e7cbc035d7a4104632d4 /2.3-1/demos/Abhinav_Demos/nthroot1.sci | |
parent | b0df4c8bb591d5df8a2401b15ea36c6402161c53 (diff) | |
parent | ff4002be02814ace57c646accf6753142732fc6c (diff) | |
download | Scilab2C-1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb.tar.gz Scilab2C-1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb.tar.bz2 Scilab2C-1b3e75b3c9bf71e5c01924ae4b48deb25390d8bb.zip |
Added demos and merged FOSSEE master
Diffstat (limited to '2.3-1/demos/Abhinav_Demos/nthroot1.sci')
-rw-r--r-- | 2.3-1/demos/Abhinav_Demos/nthroot1.sci | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2.3-1/demos/Abhinav_Demos/nthroot1.sci b/2.3-1/demos/Abhinav_Demos/nthroot1.sci new file mode 100644 index 00000000..201338b3 --- /dev/null +++ b/2.3-1/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 |