infinite Integration of hyperbolic function

2 views (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Mar 2021
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.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!