summaryrefslogtreecommitdiff
path: root/src/Scilab2C/SCI2CTests/Mes_tests/elementary Functions/mainfunctionCosh.sci
blob: 268ced3d036e32f5dd0c5ddfce0d95dfd00a26fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//SCI2C: DEFAULT_PRECISION= DOUBLE

function mainfunction()

//test cosh


disp (cosh(7/10));
disp (cosh((2+11*%i)/10))

c=[1 2 3 ;8 8 4; 3 4 5]
d=[1 2 3+3*%i ;8 8-1*%i 4; 3+4*%i 4 5]

disp (cosh(c))
disp (cosh(d))

endfunction