diff options
author | Ankitr19 | 2017-07-07 12:47:56 +0530 |
---|---|---|
committer | Ankitr19 | 2017-07-07 12:47:56 +0530 |
commit | 1dc99d862fe3178a3a6e72e2c1338000545ec859 (patch) | |
tree | 9d5ef438302e75e952ba17cb2f678a3196a6ff20 /tests/unit_tests/test_jacobi/scilabcode/main.sci | |
parent | c2e305c3b82ed944d57402dd515b3d5839a31980 (diff) | |
download | Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.tar.gz Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.tar.bz2 Scilab2C_fossee_old-1dc99d862fe3178a3a6e72e2c1338000545ec859.zip |
Demos and RPi compiler compatibility
Diffstat (limited to 'tests/unit_tests/test_jacobi/scilabcode/main.sci')
-rw-r--r-- | tests/unit_tests/test_jacobi/scilabcode/main.sci | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit_tests/test_jacobi/scilabcode/main.sci b/tests/unit_tests/test_jacobi/scilabcode/main.sci new file mode 100644 index 0000000..ee229eb --- /dev/null +++ b/tests/unit_tests/test_jacobi/scilabcode/main.sci @@ -0,0 +1,18 @@ +// Demo function to test %sn and %k functions +// %sn is the Jacobi's elliptic function +// %k is the Jacobi's complete integral +function main() + u=[1+2*%i 2+3*%i 3+1*%i]; // the corresponding complex vector + k=0.6; // parameter of elliptic integral + [out]=%sn(u,k); + disp(out); + m=[0.1 0.2 0.3]; // parametrt of Jacobi complete integral + s=%k(m); + disp(s); +endfunction + +//Output +//for %sn +// 1.5641568 - 0.2037920i 1.0580372 + 0.0100213i 1.1386855 - 0.4631921i +// for %k +// 1.6124413 1.6596236 1.7138894 |