File:Synthesis square.gif

出自Wikimedia Commons
跳至導覽 跳至搜尋

Synthesis_square.gif(500 × 250 像素,檔案大小:125 KB,MIME 類型:image/gif、​循環、​53 畫格、​15秒)

說明

說明

添加單行說明來描述出檔案所代表的內容

摘要[編輯]

描述
English: Additive synthesis of a square wave, illustrating Fourier series expansion and Gibbs phenomenon. See also: Image:Synthesis sawtooth.gif, Image:Synthesis triangle.gif.
日期 2005年十二月19日 (上傳日期)
來源 自己的作品
作者 Lucas Vieira
其他版本
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

授權條款[編輯]

GNU head 已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。
w:zh:共享創意
姓名標示 相同方式分享
此檔案採用共享創意 姓名標示-相同方式分享 3.0 未在地化版本授權條款。
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。
已新增授權條款標題至此檔案,作為GFDL授權更新的一部份。

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸用戶備⁠註
目前2013年8月15日 (四) 20:43於 2013年8月15日 (四) 20:43 版本的縮圖500 × 250(125 KB)LucasVB對話 | 貢獻Modern update: higher resolution, higher quality, language-agnostic and more visually appealing
2006年9月3日 (日) 19:45於 2006年9月3日 (日) 19:45 版本的縮圖472 × 200(34 KB)LucasVB對話 | 貢獻Fixed animation so the series actually converges over the idealized square wave in the illustration. Thanks Steven Johnson for pointing that out.
2005年12月19日 (一) 10:26於 2005年12月19日 (一) 10:26 版本的縮圖472 × 200(35 KB)LucasVB對話 | 貢獻Additive synthesis of a square wave

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

檢視此檔案的更多全域使用狀況