原始文件(SVG文件,尺寸为730 × 591像素,文件大小:28 KB)


摘要

描述

A plot of the ratio between the actual period of a pendulum and the approximate value obtained for small angles, as a function of the amplitude. According to Pendulum (mathematics), the oscillation period for small angles is given by:

while the actual period for any angle is given by:

where:

so the ratio is given by:

and this is the function plotted in the graph. First, with the following Matlab code I created a file called pendulum_period.dat;

then, in order to plot it, I used the Gnuplot code.

This code creates a file called pendulum_period.svg. I heavily post-processed it with Inkscape.
日期
来源 个人作品,使用: Matlab, Gnuplot, Inkscape.
作者 Alessio Damato; thanks to John wayman, he let me notice a mistake in the code.
SVG开发
InfoField
 
SVG的源代码为有效代码
 
矢量图使用Gnuplot创作。
 
此SVG 文件使用了内嵌文本,可以轻松翻译
源代码
InfoField
matlab code
res=2000; % resolution
sup=pi/2; % max angle to be used in the plot (in radians, less than pi)

phi=pi/2; % integration upper limit

% inizialization
T=zeros(1,res);

for i=1:res
    theta0=i*sup/res; % theta0 is the pendulum amplitude
    k = sin(theta0/2);
    F = @(t) 1./sqrt(1-(k*sin(t)).^2);
    T(i)=quad(F,0,phi); % numerical integration 
end

T = 2./pi.*T; % normalization
deg = 180/pi*sup*(1:res)./res; % conversion to degrees

% saving in the external file
temp = [deg; T];
temp = temp';
save -ascii 'pendulum_period.dat' temp;
Data
# set the output
set terminal svg
set output "pendulum_period.svg"

# axis properties
set yrange [0.99:1.08]
set xzeroaxis linetype -1 linewidth 0.5
set yzeroaxis linetype -1 linewidth 0.5
set xtics axis
set ytics axis
set key off

plot "pendulum_period.dat" using 1:2 with lines linewidth 2

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
w:zh:知识共享
署名 相同方式共享
本文件采用知识共享署名-相同方式共享 3.0 未本地化版本许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
本许可协议标签作为GFDL许可协议更新的组成部分被添加至本文件。
w:zh:知识共享
署名 相同方式共享
本文件采用知识共享署名-相同方式共享2.5 通用2.0 通用1.0 通用许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2007年4月16日 (一) 19:542007年4月16日 (一) 19:54版本的缩略图730 × 591(28 KB)Alejo2083fixed mistake
2006年11月29日 (三) 13:482006年11月29日 (三) 13:48版本的缩略图648 × 480(24 KB)Alejo2083 {{Information |Description=The plot represents the ration between the period an oscillator and the approximated value obtained for small angles. According to the relative [http://en.wikipedia.org/wiki/Pendulum_%28mathematics%29 article on wikipedia], the

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件: