File:Fresnel integrals.svg

原始文件(SVG文件,尺寸为600 × 480像素,文件大小:18 KB)


摘要

描述

This picture shows the two Fresnel integral functions. I made it working with Octave and Gnuplot, post-processing the output with Sodipodi.

First I created a file called fresnelS.m with the following content:


function y = fresnelS(x)
y = zeros(1,length(x));
F = @(t) sin(pi/2*t.^2);

for i = 1:length(x)
    y(i) = quad(F,0,x(i));
end

then I created another file called fresnelC.m with the following content:


function y = fresnelC(x)
y = zeros(1,length(x));
F = @(t) cos(pi/2*t.^2);

for i = 1:length(x)
    y(i) = quad(F,0,x(i));
end

In the same directory where these two files are, I ran the following Octave code:



t = 0:0.01:5;
S = fresnelS(t);
C = fresnelC(t);

F = [t; S; C];
F = F';
save -ascii 'fresnel_integrals.dat' F;

thus creating the file fresnel_integrals.dat. Then, to create the image, I used the following Gnuplot code:


# set the output
set terminal svg
set output "fresnel_integrals.svg"

set title "Fresnel Integrals"

# axis properties
set xrange [0:5]
set yrange [0:1]
set xlabel "x"
set xzeroaxis linetype -1 linewidth 0.5
set yzeroaxis linetype -1 linewidth 0.5
set xtics axis
set ytics axis

plot "fresnel_integrals.dat" using 1:2 title "S(x)" with lines linewidth 2,\
     "fresnel_integrals.dat" using 1:3 title "C(x)" with lines linewidth 2

Finally I opened it with Sodipodi to change the stroke style.
日期
来源 own work
 
本W3C状态不明的矢量图使用Gnuplot创作.
作者 Alessio Damato

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
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 通用许可协议授权。
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。

说明

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

此文件中描述的项目

描繪內容

文件历史

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

日期/时间缩⁠略⁠图大小用户备注
当前2006年4月26日 (三) 16:282006年4月26日 (三) 16:28版本的缩略图600 × 480(18 KB)Alejo2083improved
2005年11月21日 (一) 10:232005年11月21日 (一) 10:23版本的缩略图600 × 480(17 KB)Alejo2083This picture shows the two Fresnel integral functions. I made it working with Octave and Gnuplot, post-processing the output with Sodipodi. First I created a file called ''fresnelS.

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件: