File:Synthesis square.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Synthesis_square.gif (500 × 250 pixels, file size: 125 KB, MIME type: image/gif, looped, 53 frames, 15 s)
File information
Structured data
Captions
Summary
[edit]DescriptionSynthesis square.gif |
English: Additive synthesis of a square wave, illustrating Fourier series expansion and Gibbs phenomenon. See also: Image:Synthesis sawtooth.gif, Image:Synthesis triangle.gif. |
Date | 19 December 2005 (upload date) |
Source | Own work |
Author | Lucas Vieira |
Other versions | |
BASIC source InfoField | click to expand
' The frames of the animation can be drawn
' by the code below in BASIC. The animation
' is made by collecting the frames in an
' image editor such as GIMP.
REM Constant
pi=4*atn(1)
REM Set up plotting area
screen 12
window (0,-2)-(5*pi,2)
REM Number of terms to use
for nt=1 to 25
cls
print "Harmonics:";nt
REM Plot squarewave
pset (0,0)
for w=0 to 5*pi step .01
line -(w,sgn(sin(w))),4
next w
REM Plot sum of terms
pset (0,0)
for w=0 to 5*pi step .01
y=0
for k=1 to nt
y=y sin((2*k-1)*w)/(2*k-1)
next k
y=4*y/pi
line -(w,y)
next w
REM Freeze display (create a gif animation frame)
delay .2
next nt
|
Licensing
[edit]Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 20:43, 15 August 2013 | 500 × 250 (125 KB) | LucasVB (talk | contribs) | Modern update: higher resolution, higher quality, language-agnostic and more visually appealing | |
19:45, 3 September 2006 | 472 × 200 (34 KB) | LucasVB (talk | contribs) | Fixed animation so the series actually converges over the idealized square wave in the illustration. Thanks Steven Johnson for pointing that out. | ||
10:26, 19 December 2005 | 472 × 200 (35 KB) | LucasVB (talk | contribs) | Additive synthesis of a square wave |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on ba.wikipedia.org
- Usage on bn.wikipedia.org
- Usage on ca.wikipedia.org
- Usage on cs.wikibooks.org
- Usage on de.wikipedia.org
- Usage on el.wikipedia.org
- Usage on en.wikipedia.org
- Trigonometric functions
- User:LucasVB/Gallery
- User talk:Stevenj/Archive 3
- Wikipedia:Reference desk/Archives/Mathematics/2006 August 21
- Wikipedia:Reference desk/Archives/Mathematics/2006 October 7
- User:LucasVB/Sine from square waves
- User:IMB2007/FourierSeries
- User:Nil Einne/Sandbox/RDS
- User:Nil Einne/Sandbox/RDS2
- User:Nil Einne/Sandbox/RDS3
- Wikipedia:Reference desk/Archives/Science/2009 November 2
- User:Kwj2772/Translation
- User:Xh286286/temp2
- Usage on es.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on fi.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on gl.wikipedia.org
- Usage on hi.wikipedia.org
- Usage on id.wikipedia.org
- Usage on it.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on lt.wikipedia.org
- Usage on nl.wikipedia.org
- Usage on nn.wikipedia.org
- Usage on no.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on pt.wikipedia.org
- Usage on ru.wikipedia.org
View more global usage of this file.