matlab双曲函数

matlab双曲函数

matlab:

x= -10:0.1:10;
sinhx = (exp(x)-exp(-x))/2;
coshx = (exp(x)+exp(-x))/2;
tanhx = (exp(x)-exp(-x))./(exp(x)+exp(-x));

figure(1),plot(x,sinhx,'r-'),legend('双曲正弦函数sinh(x)');
grid on;

figure(2),plot(x,coshx,'g-'),legend('双曲余弦函数cosh(x)');
grid on;

figure(3),plot(x,tanhx,'b-'),legend('双曲正切函数tanh(x)');
grid on;


结果如图:

matlab双曲函数


matlab双曲函数


matlab双曲函数

上一篇:错误记录【Operator ‘<‘ cannot be applied to ‘boolean‘, ‘int‘】


下一篇:Vue v-for Cannot read property ‘xxx‘ of null