Plotting Complex Functions.

조회 수: 4 (최근 30일)
Sudharsana Iyengar
Sudharsana Iyengar 2024년 8월 25일
댓글: Sudharsana Iyengar 2024년 8월 28일
I intend to do a taylor series expansion at t=0. I would like to plot the coefficients of each Taylor term in the complex plane, using the surf function.
I tried Taylor(F) , Series (F) somewhere there is an error. The function is product of two gaussians, with two parameters mentioned above. This Gaussian contains other constants, Some are symbolic, while some have pre determined values.
Can some one help me out.
Thanks.
  댓글 수: 7
David Goodmanson
David Goodmanson 2024년 8월 28일
편집: David Goodmanson 2024년 8월 28일
Hi Sudharsana, could you comment on what the coefficients you show above are all about?
Sudharsana Iyengar
Sudharsana Iyengar 2024년 8월 28일
It is a product of two gaussians. These gaussians have different parameters.
The function is expanded around x=0.
Each of the coefficient is integrated in the complex plane.
I hope this helps.

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

답변 (1개)

David Goodmanson
David Goodmanson 2024년 8월 26일
편집: David Goodmanson 2024년 8월 28일
Hello Sudharsana,
Do you mean
f(t) = exp(-ar/(twC))*exp(-ai/(twC))
or
f(t) = exp(-ar/(twC))*exp(-i*ai/(twC))
^
(per Torsten's first comment)? Either way, this function has an essential singularity at t = 0 in the complex t plane. Assuming the lower line above is correct, which makes sense, then the first factor
exp(-(ar/wC)/t)
has the most to do with the behavior of the function at the origin. Assuming (ar/wC) is positive, then if you approach the origin from the right, the function f(t) and all its derivatives are zero at t = 0+. Since the coefficients of a Taylor series about a point are determined by the derivatives of f(t) at that point, this means that f(t) cannot be expanded in a Taylor series about t = 0. If (ar/wC) is negative then as you approach the origin from the from the right, f(t) --> infinity so again there is no Taylor series.
Which doesn't mean that it can't be approximated. For example, using exp(-1/t) for simplicity
t = 0:.001:4;
f = exp(-1./t);
c = polyfit(t,f,6)
f_fit = polyval(c,t);
I'm not advocating for polyfit which is anyway not a great idea for polynomials of large degree, and I am sure there are better fits but this is just one example.

카테고리

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