# Plot the real value of the Fourier component of electric field?

**URL:** <https://community.wolfram.com/t/plot-the-real-value-of-the-fourier-component-of-electric-field/14477>\
**Category:** Questions\
**Tags:** engineering, physics, signal-processing, graphics-and-visualization\
**Created:** [July 15, 2019, 12:13pm UTC](https://community.wolfram.com/t/plot-the-real-value-of-the-fourier-component-of-electric-field/14477 "2019-07-15T12:13:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliepeali](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@aliepeali](https://community.wolfram.com/u/aliepeali)\
**Post date:** [July 15, 2019, 12:13pm UTC](https://community.wolfram.com/t/plot-the-real-value-of-the-fourier-component-of-electric-field/14477/1 "2019-07-15T12:13:12Z")

</div>

I have attached a code below I am trying to plot the real value of the fourier component of electric field dq l, and I am taking contribution of fields from all positions dx j.

When I ListPlot3D for nn=200, the Mathematica quits its kernel by itself without any error or warning.  
I wonder is it the memory issue or something else because the code works well for few points such as  
nn=20. But I have to have nn=200.

[Code-1.nb](https://community.wolfram.com/uploads/short-url/fbclP5VAd04Cr7yuRr0Wm0RQ9Db.nb) (10.2 KB)

---

<div class="post-metadata">

**Author:** ![danl](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/danl/32/41267_2.png) [@danl](https://community.wolfram.com/u/danl)\
**Post date:** [July 15, 2019, 3:01pm UTC](https://community.wolfram.com/t/plot-the-real-value-of-the-fourier-component-of-electric-field/14477/2 "2019-07-15T15:01:53Z")

</div>

Those are large symbolic expressions being generated. I’d suggest using approximate numbers in the definition of `Eq` so as to get a numerical table instead.

Also if you can redefine `Eq` in a way that uses `Fourier` rather than explicit sums, it would be much faster.

---

<div class="post-metadata">

**Author:** ![aliepeali](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@aliepeali](https://community.wolfram.com/u/aliepeali)\
**Post date:** [July 16, 2019, 1:42pm UTC](https://community.wolfram.com/t/plot-the-real-value-of-the-fourier-component-of-electric-field/14477/3 "2019-07-16T13:42:42Z")

</div>

Thank you for the advise.
