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双曲函数

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双曲函数

相关文章:

  • 2022-01-22
  • 2022-12-23
  • 2021-04-18
  • 2021-09-22
  • 2021-07-07
  • 2021-07-11
  • 2021-11-20
  • 2021-09-17
猜你喜欢
  • 2021-04-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-01-25
相关资源
相似解决方案