ECE3340 Numerical Methods |
|
Fourier Tutorial Series - 1
graphics for space-dependent functions
ECE 3340 & generic Han Q. Le (c)
1. Review previous
1.1 From HW
Out[20]=
1.2 Different coefficients
Out[25]=
1.3 Still different coefficients
Out[30]=
1.4 Fourier morphing
2-set morph
Code
Out[10]=
3-set morph
Code
2. Fourier series
See Lecture on Fourier
Some demo
In[1]:=
Out[1]=
In[8]:=
Out[8]=
In[1]:=
Out[1]=
In[11]:=
Out[11]=
In[12]:=
Out[12]=
In[13]:=
Out[13]=
In[14]:=
Out[14]=
In[15]:=
In[16]:=
Out[16]=
In[22]:=
3. Numerical demos
3.1 House
In[26]:=
Out[26]=
Out[33]=
In[34]:=
Out[34]=
A function
In[36]:=
Out[38]=
In[39]:=
Out[39]=
3.2 Castle
In[40]:=
In[41]:=
Out[41]=
In[42]:=
Out[44]=
In[45]:=
Out[45]=
3.2 Multivalue-function: Heart
In[48]:=
Out[48]=
In[55]:=
Out[55]=
Fourier synthesis function V2
test previous
In[57]:=
Out[59]=
In[60]:=
Out[62]=
3.3 Multivalue-function: pine tree
Out[71]=
4. The nature of different-frequency contribution
Why need many frequencies? A look at how each frequency contributes to an image.
4.1 image to be studied
In[72]:=
In[52]:=
Out[52]=
In[176]:=
Out[176]=
Out[177]=
observe each additional step of each Fourier Component
Code
Out[55]=
4.2 related app
See app page 2.
5. Waveform - pulse synthesis
Below are Fourier coefficients for a few common waveforms. You can adapt these things for your HW, however, you must understand the different codes (functions) and their intended applications. There are those written for graphics output, and those for numerical output.
5.1 Square wave
In[44]:=
Out[44]=
5.1.1 Integral
To obtain a Fourier coefficient:
In[1]:=
Out[1]=
In[5]:=
Out[5]=
In[8]:=
Out[8]=
In[9]:=
Out[9]=
For coding, use this:
5.1.2 For computation
Demo only. You SHOULD extract, modify, adapt, do whichever needed for your own work.
Code
Out[28]=
5.2 Sawtooth
Code
Out[40]=
5.2.1 Integral
In[64]:=
Out[65]=
In[67]:=
Out[67]=
In[68]:=
Out[68]=
In[69]:=
Out[69]=
In[70]:=
Out[70]=
In[71]:=
Out[71]=
For coding, use this:
5.2.2 For computation
Demo only. You SHOULD extract, modify, adapt, do whichever needed for your own work.
Code
Out[29]=
5.3 Triangle
Code
Out[77]=
5.3.1 Integral
In[78]:=
Out[79]=
In[80]:=
Out[80]=
In[82]:=
Out[82]=
For coding, use this:
5.3.2 For computation
Demo only. You SHOULD extract, modify, adapt, do whichever needed for your own work.
Code
Out[71]=
5.4 Exponential
Code
Out[2]=
5.4.1 Integral
In[3]:=
Out[4]=
For coding, use this:
5.4.2 For computation
Demo only. You SHOULD extract, modify, adapt, do whichever needed for your own work.
Code
Out[72]=
5.5 Common utilities for the 4 waveforms
In[74]:=
In[73]:=
Example:
In[75]:=
Out[75]=
6. Concept of bandwidth and pulse duration
6.1 Exponential pulse
In[49]:=
In[3]:=
Out[3]=
In[12]:=
Out[12]=
Code
Out[74]=
6.2 Gaussian pulse
In[14]:=
Out[14]=
Code
Out[75]=
6.3 Square pulse
In[21]:=
Out[21]=
Code
Out[76]=
6.4 Triangle (symmetric ramp) pulse
In[26]:=
In[27]:=
In[28]:=
In[29]:=
Out[29]=
In[33]:=
Out[33]=
Code
Out[77]=
HW on pulse shape
pulse: raised cosine, sech, trapeze.
Pre-classwork and HW project
Each generates a line art graphics that can be done
with Fourier synthesis. Two options:
A- multi-line artwork (minimum 2 non-constant lines)
B- 2 or more single-line artworks and morph them
You have some data in a csv file. Analyze it.