How to calculate a definite integral with Planck's law function

조회 수: 8 (최근 30일)
Miguel Ángel Bueno Sánchez
Miguel Ángel Bueno Sánchez 2017년 10월 18일
댓글: Sarvjeet Singh 2020년 9월 26일
Hello, I have to calculate a definite integral of the Planck's law in the interval between two certain wavelength values. In-built function int() cannot do the work due to the fact that the integral should be solved using numerical methods. Could someone tell me how to calculate that integral? I am thinking of doing it the Riemann way, but I was wondering if there is an easier way.
Thanks!
  댓글 수: 2
Star Strider
Star Strider 2017년 10월 18일
I cannot determine from your Question what you want to do.
See the integral (link) function and related functions. (Also consider the quad (link) function and its friends if you do not have integral.)
Sarvjeet Singh
Sarvjeet Singh 2020년 9월 26일
Hi Miguel,
i am facing the same issue, can u help me ?

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

답변 (1개)

Arvind Narayanan
Arvind Narayanan 2017년 10월 23일
Hi Miguel,
You may use the integral function from MATLAB. Please note that quad function is not recommended as it will be discontinued soon.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by