Definite integral with an exponential

조회 수: 2 (최근 30일)
Pilar Jiménez
Pilar Jiménez 2017년 1월 18일
댓글: Star Strider 2017년 1월 23일
I need to integrate this function f=wn.*exp(1i.*2.*pi.*t) to get the numerical result, where the variable function is t, and wn=1. Evalue limits are 0 to 0.9. Can somebody help me?

채택된 답변

Star Strider
Star Strider 2017년 1월 18일
Your question seems to have changed. With respect to ‘wn(t)’ see my Comment in your original Question.
Try this:
syms wn t u_lim wn(t)
wn(t) = sym(1);
f = wn*exp(1i*2.*pi*t);
cplx_int = int(f, t, 0, 0.9)
cplx_int_n = vpa(cplx_int)
abs_cplx_int_n = abs(cplx_int_n)
cplx_int =
-(5^(1/2)*1i + (10 - 2*5^(1/2))^(1/2) - 3i)/(8*pi)
cplx_int_n =
- 0.093548928378863903321291906615298 + 0.03039588939177436951706748797891i
abs_cplx_int_n =
0.098363164308346596734748787414694
  댓글 수: 4
Pilar Jiménez
Pilar Jiménez 2017년 1월 23일
Good day, I want to apologize to you because it seems to have an incorrect data that made my integral did not show the expected result. The problem has already been solved, thank you very much for your help.
Star Strider
Star Strider 2017년 1월 23일
My pleasure.
If my Answer helped you solve your problem, please Accept it!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by