필터 지우기
필터 지우기

is the cosh(Hyperbolic cosine) wrong?

조회 수: 2 (최근 30일)
cheng sy
cheng sy 2015년 6월 24일
답변: cheng sy 2015년 6월 24일
In recent days, I have confused by the function of cosh(Hyperbolic cosine) in matlab. Suppose the matrix is the following:
S=[ 1.0e-05 *
-0.1293 + 0.0195i -0.0128 + 0.0079i -0.0144 + 0.0090i
-0.0141 + 0.0085i -0.1266 + 0.0197i -0.0141 + 0.0085i
-0.0144 + 0.0090i -0.0128 + 0.0079i -0.1293 + 0.0195i]
The cosh of S with matlab function cosh, the result is:
ans =
1.0000 - 0.0000i 1.0000 - 0.0000i 1.0000 - 0.0000i
1.0000 - 0.0000i 1.0000 - 0.0000i 1.0000 - 0.0000i
1.0000 - 0.0000i 1.0000 - 0.0000i 1.0000 - 0.0000i
In factor, cosh is can be expended by the Maclaurin’s series:
When x is a matrix, the first term of the Maclaurin’s series is unite matrix or identity matrix.
So the result should be :
ans =
1.0000 - 0.0000i 0.0000 - 0.0000i 0.0000 - 0.0000i
0.0000 - 0.0000i 1.0000 - 0.0000i 0.0000 - 0.0000i
0.0000 - 0.0000i 0.0000 - 0.0000i 1.0000 - 0.0000i

채택된 답변

cheng sy
cheng sy 2015년 6월 24일
The cosh of S with matlab function cosh, the result is:
ans =
1.0000 - 0.0000i 1.0000 - 0.0000i 1.0000 - 0.0000i
1.0000 - 0.0000i 1.0000 - 0.0000i 1.0000 - 0.0000i
1.0000 - 0.0000i 1.0000 - 0.0000i 1.0000 - 0.0000i
  댓글 수: 1
Torsten
Torsten 2015년 6월 24일
cosh(A) is evaluated elementwise.
If you want matrix exponential, use Y=(expm(S)+expm(-S))/2.
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

추가 답변 (3개)

cheng sy
cheng sy 2015년 6월 24일
In factor, cosh is can be expended by the Maclaurin’s series:

Walter Roberson
Walter Roberson 2015년 6월 24일
"cosh(X) is the hyperbolic cosine of the elements of X."
In other words, cosh() is applied one by one to the elements of X, independently of the others.

cheng sy
cheng sy 2015년 6월 24일
thanks!

카테고리

Help CenterFile Exchange에서 Trigonometry에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by