Dear guys,
I'm going to calculate conductivity of graphene. so I forced to calculate an infinite integral containing hyperbolic sine and cosine functions . I wrote a matlab code to do that, But it diverged. would you please check my matlab code, and give me your advices to correct it's errors.
my m-file has been attached.

 채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 2일

0 개 추천

y5=@(x)(4*hh.^2-4.*(x.^2));
y6=@(x)y4(x)./y5(x);
You have a division by a constant minus 4*x^2 . But that can pass through 0 -- and does at 9.939e-21 . That gives you an unremovable discontinuity leading to undefined integral.
... And that is not even counting the fact that you are dealing with huge trigh expressions that overflow to any practical infinity by the time of x = 1.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by