函数的面积与黎曼和
2014-02-11 06:04
本范例通过动态演示黎曼和的概念,帮助用户直观理解定积分与极限的关系。通过增加分割区间的数量,观察一系列长方形面积之和如何逼近函数曲线下的真实面积。支持输入自定义函数和积分区间,利用序列和求和命令动态构建矩形,生动展示了从离散求和到连续积分的极限过程,是学习微积分基础概念的理想交互工具。
所属专题
微积分
GeoGebra 画板及绘图内容加载中,请稍等……
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="4.4" version="4.4.10.0" id="1d61cf3f-d45b-4c04-ba63-1e56bf1a8982" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="786" height="622" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.2544529262086514" orientation="1" />
</panes>
<views>
<view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1" size="400" window="642,326,700,550" />
<view id="4" toolbar="0 59 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 | 1011 || 1008 1009 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="1" size="775" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3" size="200" window="100,100,250,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 39 59 | 1 501 67 , 5 19 , 72 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 | 30 29 54 32 31 33 | 17 26 62 73 , 14 66 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="false" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="12"/>
<graphicsSettings javaLatexFonts="false"/>
</gui>
<euclidianView>
<size width="775" height="485"/>
<coordSystem xZero="175.00000000000003" yZero="333.0" scale="49.999999999999986" yscale="50.00000000000002"/>
<evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="0" grid="10"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0"/>
<coordStyle val="0"/>
<angleFromInvTrig val="false"/>
</kernel>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<expression label ="f" exp="f(x) = ((-(x)) * (x - 8) / 4)"/>
<element type="function" label="f">
<show object="false" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<element type="numeric" label="a">
<value val="0.0"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="b">
<value val="8.0"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<command name="Integral">
<input a0="f" a1="a" a2="b"/>
<output a0="s"/>
</command>
<element type="numeric" label="s">
<value val="21.333333333333336"/>
<show object="true" label="false"/>
<objColor r="0" g="0" b="255" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<element type="numeric" label="t">
<value val="0.5"/>
<show object="true" label="true"/>
<condition showObject="c"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="1" absoluteScreenLocation="true" width="100.0" x="141.0" y="447.0" fixed="false" horizontal="true"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
</element>
<command name="Function" var="x">
<input a0="f" a1="a" a2="b"/>
<output a0="g"/>
</command>
<element type="function" label="g">
<show object="true" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<element type="numeric" label="n">
<value val="8.0"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="1" max="20" absoluteScreenLocation="true" width="150.0" x="335.0" y="405.0" fixed="false" horizontal="true"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<expression label="dx" exp="(b - a) / n" />
<element type="numeric" label="dx">
<value val="1.0"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<command name="Sequence">
<input a0="a + (k * dx)" a1="k" a2="0" a3="n - 1"/>
<output a0="xs"/>
</command>
<element type="list" label="xs">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Sequence">
<input a0="f(Element[xs, k] + (t * dx))" a1="k" a2="1" a3="n"/>
<output a0="ys"/>
</command>
<element type="list" label="ys">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Sequence">
<input a0="Polygon[(Element[xs, k], 0), (Element[xs, k] + dx, 0), (Element[xs, k] + dx, Element[ys, k]), (Element[xs, k], Element[ys, k])]" a1="k" a2="1" a3="n"/>
<output a0="p"/>
</command>
<element type="list" label="p">
<show object="true" label="false"/>
<objColor r="255" g="0" b="0" alpha="0.3"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="1" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Textfield">
<input a0="f"/>
<output a0="inputBox1"/>
</command>
<element type="textfield" label="inputBox1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="15" y="15"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript val=""/>
<linkedGeo exp="f"/>
<length val="10"/>
<caption val="函數:"/>
</element>
<command name="Textfield">
<input a0="a"/>
<output a0="inputBox2"/>
</command>
<element type="textfield" label="inputBox2">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="265" y="15"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript val=""/>
<linkedGeo exp="a"/>
<length val="3"/>
<caption val="左:"/>
</element>
<command name="Textfield">
<input a0="b"/>
<output a0="inputBox3"/>
</command>
<element type="textfield" label="inputBox3">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="415" y="15"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript val=""/>
<linkedGeo exp="b"/>
<length val="3"/>
<caption val="右:"/>
</element>
<element type="button" label="button1">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="511" y="389"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[n,n+1]"/>
<font serif="false" sizeM="2.0" size="12" style="0"/>
<file name="/geogebra/gui/images/go-next.png"/>
</element>
<element type="button" label="button2">
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="271" y="388"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript val="SetValue[n,n-1]"/>
<font serif="false" sizeM="2.0" size="12" style="0"/>
<file name="/geogebra/gui/images/go-previous.png"/>
</element>
<command name="Sequence">
<input a0="Element[xs, k] + (t * dx)" a1="k" a2="1" a3="n"/>
<output a0="xs2"/>
</command>
<element type="list" label="xs2">
<objColor r="0" g="100" b="0" alpha="0.1"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<command name="Sequence">
<input a0="Segment[(Element[xs2, k], 0), (Element[xs2, k], Element[ys, k])]" a1="k" a2="1" a3="n"/>
<output a0="segs"/>
</command>
<element type="list" label="segs">
<show object="true" label="false"/>
<condition showObject="c"/>
<objColor r="96" g="96" b="96" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<lineStyle thickness="2" type="10" typeHidden="1"/>
<pointSize val="3"/>
<pointStyle val="-1"/>
</element>
<element type="boolean" label="c">
<value val="false"/>
<show object="true" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="32" y="387"/>
<labelMode val="0"/>
<caption val="顯示取值點"/>
</element>
<command name="Sum">
<input a0="p"/>
<output a0="sn"/>
</command>
<element type="numeric" label="sn">
<value val="21.5"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
</element>
<expression label="as" exp="(a * s)" />
<element type="numeric" label="as">
<value val="0.0"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<auxiliary val="true"/>
</element>
<expression label="text2" exp=""誤差:" + (abs(s - sn)) + """ />
<element type="text" label="text2">
<show object="true" label="false"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<font serif="false" sizeM="2.0" size="12" style="0"/>
<decimals val="4"/>
<startPoint x="7.3000000000000025" y="3.379999999999998" z="1.0"/>
</element>
<expression label="text1" exp=""a_{" + (LaTeX[n]) + "}=" + (LaTeX[sn]) + """ />
<element type="text" label="text1">
<show object="true" label="false"/>
<objColor r="0" g="0" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="2.0" size="12" style="0"/>
<decimals val="4"/>
<startPoint x="7.400000000000001" y="5.339999999999999" z="1.0"/>
</element>
<expression label="text3" exp=""曲線面積:" + s + """ />
<element type="text" label="text3">
<show object="true" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<font serif="false" sizeM="2.0" size="12" style="0"/>
<decimals val="4"/>
<startPoint x="6.320000000000002" y="3.999999999999999" z="1.0"/>
</element>
</construction>
</geogebra>