ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 06 May 2017 23:03:01 +0200Integrating Green's function and plotting.https://ask.sagemath.org/question/37531/integrating-greens-function-and-plotting/ Hi,
I am trying to integrate product of two Green's functions and plot the results using Maxima. The problem is that Green's functions have singularities.
$ I=\int_{-\infty}^{+\infty}dxG1(x)G2(x)(F1(x)-F2(x))$
and
$ G1(x) = \frac{1}{ (x-0.1)+0.5+0.00001i} $
$ G2(x) = \frac{1}{ (x-0.1)+0.5-0.00001i} $
$ F1(x) = \frac{1}{ 1+e^{\frac{x}{0.2}}}$
$ F2(x) = \frac{1}{ 1+e^{\frac{x+0.4}{0.2}}}$
When I use wxMaxima (CAS), it fails to integrate and it fails to plot the solution y. I know that the solution plot should look like a smoothed step function where rising edge should be at x=0.1.
Any suggestions how to code wxMaxima is appreciated.Sat, 06 May 2017 18:02:05 +0200https://ask.sagemath.org/question/37531/integrating-greens-function-and-plotting/Comment by kcrisman for <p>Hi,
I am trying to integrate product of two Green's functions and plot the results using Maxima. The problem is that Green's functions have singularities.</p>
<p>$ I=\int_{-\infty}^{+\infty}dxG1(x)G2(x)(F1(x)-F2(x))$</p>
<p>and</p>
<p>$ G1(x) = \frac{1}{ (x-0.1)+0.5+0.00001i} $</p>
<p>$ G2(x) = \frac{1}{ (x-0.1)+0.5-0.00001i} $</p>
<p>$ F1(x) = \frac{1}{ 1+e^{\frac{x}{0.2}}}$</p>
<p>$ F2(x) = \frac{1}{ 1+e^{\frac{x+0.4}{0.2}}}$</p>
<p>When I use wxMaxima (CAS), it fails to integrate and it fails to plot the solution y. I know that the solution plot should look like a smoothed step function where rising edge should be at x=0.1.</p>
<p>Any suggestions how to code wxMaxima is appreciated.</p>
https://ask.sagemath.org/question/37531/integrating-greens-function-and-plotting/?comment=37533#post-id-37533Just a note that this forum is for Sage stuff; you may not find many wxMaxima experts here.Sat, 06 May 2017 23:03:01 +0200https://ask.sagemath.org/question/37531/integrating-greens-function-and-plotting/?comment=37533#post-id-37533