抛物线的光线反射与光学性质演示
2019-03-06 06:28
本GeoGebra范例动态演示了抛物线的光学反射性质。用户可以通过交互点调整光线的初始发射点P_0以及在抛物线上的第一反射点I_0,观察光线经抛物线反射后的路径变化。该模型结合了抛物线、向量、直线与序列等对象,直观展示了焦点反射原理及多次反射的轨迹,适用于解析几何与圆锥曲线光学性质的教学与探究。
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.613.0" app="classic" platform="w" id="d6f589c2-2701-4c57-be52-2fc99dd24284" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="722" height="486" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.6814404432132964" orientation="1" />
</panes>
<views>
<view id="4097" visible="false" inframe="false" stylebar="true" location="1,1,1,1" size="400" window="123,115,1675,801" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="true" location="1,1" size="182" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3,3" size="246" tab="ALGEBRA" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="187" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="3" size="492" window="100,100,600,400" />
<view id="16" visible="true" inframe="false" stylebar="false" location="1" size="219" 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" toolbar="0" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="128" visible="false" inframe="false" stylebar="false" location="1" size="480" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="false" items="0 39 73 62 | 1 501 67 , 5 19 , 72 75 76 | 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 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="false" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="2"/>
<font size="20"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="492" height="482"/>
<coordSystem xZero="48.67105489295384" yZero="226.37325346589725" scale="4.771741665853811" yscale="4.771741665854314"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="64" g="64" b="64"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<euclidianView>
<viewNumber viewNo="2"/>
<size width="218" height="482"/>
<coordSystem xZero="31.52917520110093" yZero="347.7168342636803" scale="41.46106328507742" yscale="41.46106328507732"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="64" g="64" b="64"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" 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" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2" max="2" step="1"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="boolean" label="SP">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<condition showObject="k ≤ 30 ∨ i ≟ k"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="-3" y="202"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="快速畫線"/>
</element>
<element type="point" label="F">
<show object="true" label="false" ev="4"/>
<condition showObject="PAR ≠ 0"/>
<objColor r="175" g="238" b="238" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="5" y="0" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="point" label="B">
<show object="true" label="false" ev="4"/>
<condition showObject="PAR ≠ 0"/>
<objColor r="175" g="238" b="238" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<coords x="-5" y="-15" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<expression label="A" exp="(-5, 20)" type="point"/>
<element type="point" label="A">
<show object="true" label="false" ev="4"/>
<condition showObject="PAR ≠ 0"/>
<objColor r="175" g="238" b="238" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="-5" y="20" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Line">
<input a0="A" a1="B"/>
<output a0="f"/>
</command>
<element type="line" label="f">
<show object="true" label="true" ev="4"/>
<objColor r="175" g="238" b="238" alpha="0"/>
<layer val="1"/>
<labelOffset x="-1" y="80"/>
<labelMode val="3"/>
<coords x="35" y="0" z="175"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eqnStyle style="implicit"/>
<caption val="準線"/>
</element>
<command name="Parabola">
<input a0="F" a1="f"/>
<output a0="c"/>
</command>
<element type="conic" label="c">
<show object="true" label="false" ev="4"/>
<objColor r="153" g="255" b="153" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<eigenvectors x0="1" y0="0" z0="1.0" x1="0" y1="1" z1="1.0"/>
<matrix A0="0" A1="1.6" A2="0" A3="0" A4="-16" A5="0"/>
<eqnStyle style="implicit"/>
</element>
<command name="Point">
<input a0="c"/>
<output a0="I_0"/>
</command>
<element type="point" label="I_0">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="255" b="255" alpha="0"/>
<layer val="3"/>
<labelOffset x="-23" y="-6"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="StartAnimation[t,false]
S_P={}
S_I={}
S_T={}
S_V={}
SetValue[i,1]
SetValue[t,0]
SetValue[FF,false]
SetValue[F1,false]
SetValue[PARA,false]
If(start,SetValue[kk,k])
If(start,StartAnimation[t,true])
"/>
<coords x="0.3864162573656796" y="-2.779986537254019" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="point" label="P_0">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="255" b="255" alpha="0"/>
<layer val="3"/>
<labelOffset x="-18" y="-17"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="StartAnimation[t,false]
S_P={}
S_I={}
S_T={}
S_V={}
SetValue[i,1]
SetValue[t,0]
SetValue[kk,k]
If(F1,SetValue[I_0,Intersect(Ray(P_0+0.001*Vector(P_0, F_1), F_1), c)])
If(PARA,SetValue[I_0,Intersect(OrthogonalLine(P_0, f), c)])
If(start,StartAnimation[t,true])


"/>
<coords x="28.779626962993564" y="14.328783545673351" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<expression label="S_I" exp="{(663.3749313689482, -2.779986537253717)}"/>
<element type="list" label="S_I">
<show object="false" label="false" ev="8"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<command name="Union">
<input a0="{P_0, I_0}" a1="S_I"/>
<output a0="I"/>
</command>
<element type="list" label="I">
<show object="false" label="false" ev="11"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<element type="numeric" label="t">
<value val="0"/>
<show object="false" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="0" max="kk + 1" absoluteScreenLocation="true" width="200" x="23" y="677" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.001" speed="If[SP, 20, 8 / If[ceil(t) ≟ 0, 1, Element[SpeedC, ceil(t)]]]" type="3" playing="false"/>
<ggbscript onUpdate="If(i<=kk,SetValue[S_T,i,Tangent(If(i==1,I_0,Element(S_I,i-1)),c)])
If(i<=kk,SetValue[S_V,i,OrthogonalLine(If(i==1,I_0,Element(S_I,i-1)),Element(S_T,i))])
If(i<=kk,SetValue[S_P,i,Mirror(If(i==1,P_0,If(i==2,I_0,Element(S_I,i-2))),Element(S_V,i))])
If(i<=kk,SetValue[II,Intersect(Ray(If(i==1,I_0,Element(S_I,i-1))+0.01*Vector(If(i==1,I_0,Element(S_I,i-1)),Element(S_P,i)),Element(S_P,i)),c)])
If(i<=kk,SetValue[S_I,i,If(II==II,II,If(i==1,I_0,Element(S_I,i-1))+20*Vector(If(i==1,I_0,Element(S_I,i-1)),Element(S_P,i)))])
If(i<=kk,If(II!=II,SetValue[kk,i]))
If(i<=kk,SetValue[i,i+1])"/>
</element>
<element type="numeric" label="kk">
<value val="1"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="1"/>
<labelMode val="2"/>
<animation speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="Distance[Element[I, n], Element[I, n + 1]] / Distance[P_0, I_0]" a1="n" a2="1" a3="kk + 1"/>
<output a0="SpeedC"/>
</command>
<element type="list" label="SpeedC">
<objColor r="0" g="100" b="0" alpha="0.10000000149011612"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<element type="numeric" label="k">
<value val="20"/>
<show object="true" label="true" ev="3"/>
<objColor r="224" g="224" b="224" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="2"/>
<slider min="2" max="20" absoluteScreenLocation="true" width="170" x="16" y="45" fixed="false" horizontal="true" showAlgebra="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
<ggbscript onUpdate="If(k>30,SetValue[SP,false])"/>
<caption val="反射點個數"/>
</element>
<element type="button" label="button1">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="2" y="135"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="StartAnimation[t,false]
S_P={}
S_I={}
S_T={}
S_V={}
SetValue[i,1]
SetValue[t,0]
SetValue[i,1]
SetValue[start,false]
SetValue[SP,false]"/>
<font serif="false" sizeM="2" size="20" style="0"/>
<caption val="Reset"/>
</element>
<expression label="S_P" exp="{(33.535842012944805, -2.779986537254004)}"/>
<element type="list" label="S_P">
<show object="false" label="false" ev="8"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<expression label="S_T" exp="{(-16 * x) - (4.447978459606431 * y) = 6.182660117850873}"/>
<element type="list" label="S_T">
<show object="false" label="false" ev="8"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<expression label="S_V" exp="{(4.447978459606431 * x) - (16 * y) = 46.19855578526858}"/>
<element type="list" label="S_V">
<show object="false" label="false" ev="8"/>
<objColor r="0" g="100" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="0" playing="false"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<element type="numeric" label="i">
<value val="1"/>
<show object="false" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="2"/>
<slider min="1" max="k + 1" absoluteScreenLocation="true" width="200" x="30" y="626" fixed="false" horizontal="true" showAlgebra="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<command name="If">
<input a0="t ≠ kk + 1" a1="((t - floor(t)) * Element[I, floor(t) + 2]) + ((1 - t + floor(t)) * Element[I, floor(t) + 1])" a2="Element[I, t + 1]"/>
<output a0="P"/>
</command>
<element type="point" label="P">
<show object="true" label="false" ev="4"/>
<condition showObject="t ≠ 0 ∧ t ≠ k"/>
<objColor r="255" g="204" b="51" alpha="0"/>
<layer val="0"/>
<labelOffset x="78" y="17"/>
<labelMode val="0"/>
<coords x="28.779626962993564" y="14.328783545673351" z="1"/>
<pointSize val="4"/>
<pointStyle val="5"/>
</element>
<command name="Vector">
<input a0="P_0" a1="I_0"/>
<output a0="u"/>
</command>
<element type="vector" label="u">
<show object="true" label="false" ev="4"/>
<condition showObject="AIM ≠ 0 ∧ t ≟ 0"/>
<objColor r="255" g="153" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="-28.393210705627883" y="-17.10877008292737" z="0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<coordStyle style="cartesian"/>
<startPoint exp="P_0"/>
</element>
<element type="boolean" label="FF">
<value val="true"/>
<show object="true" label="true" ev="3"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="-3" y="233"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="SetValue[PARA,false]
If(FF,SetValue[F1,true],SetValue[F1,false])"/>
<caption val="光學性質"/>
</element>
<element type="button" label="button2">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="3" y="91"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript val="StartAnimation[t,false]
S_P={}
S_I={}
S_T={}
S_V={}
SetValue[i,1]
SetValue[t,0]
SetValue[kk,k]
StartAnimation[t,true]
SetValue[start,true]"/>
<font serif="false" sizeM="2" size="20" style="0"/>
<caption val="Start"/>
</element>
<element type="boolean" label="AIM">
<value val="true"/>
<show object="true" label="true" ev="3"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="-3" y="173"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<caption val="瞄準線"/>
</element>
<expression label="text1" exp=""反射點個數""/>
<element type="text" label="text1">
<show object="true" label="false" ev="43"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<startPoint x="0.5654021711120358" y="6.645309163066232" z="1"/>
</element>
<element type="boolean" label="PRO">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="-2" y="324"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="SetValue[SEG,false]
SetValue[arrow,true]
SetValue[PAR,false]"/>
<caption val="進階選項"/>
</element>
<element type="boolean" label="arrow">
<value val="true"/>
<show object="false" label="true" ev="3"/>
<condition showObject="PRO ≠ 0"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="7" y="357"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="If(PRO,If(arrow,SetValue[SEG,false],SetValue[SEG,true]))"/>
<caption val="有向光線"/>
</element>
<element type="boolean" label="SEG">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<condition showObject="PRO ≠ 0"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="122" y="359"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="If(PRO,If(SEG,SetValue[arrow,false],SetValue[arrow,true]),SetValue[SEG,false])"/>
<caption val="線段"/>
</element>
<element type="boolean" label="PAR">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<condition showObject="PRO ≠ 0"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="7" y="388"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="調整準線形狀位置"/>
</element>
<command name="Sequence">
<input a0="Vector[Element[I, n], If[t ≤ n, P, Element[I, n + 1]]]" a1="n" a2="1" a3="floor(t) + 1"/>
<output a0="V"/>
</command>
<element type="list" label="V">
<show object="false" label="false" ev="4"/>
<condition showObject="arrow ≠ 0"/>
<objColor r="255" g="153" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="4" type="0" typeHidden="1" opacity="127"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="Segment[Element[I, n], If[t ≤ n, P, Element[I, n + 1]]]" a1="n" a2="1" a3="floor(t) + 1"/>
<output a0="SE"/>
</command>
<element type="list" label="SE">
<show object="true" label="false" ev="4"/>
<condition showObject="SEG ≠ 0"/>
<objColor r="255" g="153" b="0" alpha="0"/>
<layer val="2"/>
<labelMode val="0"/>
<lineStyle thickness="3" type="0" typeHidden="1" opacity="127"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<element type="boolean" label="start">
<value val="false"/>
<show object="false" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelOffset x="79" y="91"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
</element>
<expression label="text3" exp=""調整焦點F,及準線""/>
<element type="text" label="text3">
<show object="true" label="false" ev="43"/>
<condition showObject="PRO ≠ 0"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="0.7" size="-6" style="0"/>
<startPoint x="0.07125990427638285" y="-1.903021874627977" z="1"/>
</element>
<expression label="text4" exp=""F""/>
<element type="text" label="text4">
<show object="true" label="false" ev="40"/>
<objColor r="175" g="238" b="238" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1" size="0" style="0"/>
<startPoint exp="F"/>
<labelOffset x="5" y="-26"/>
</element>
<expression label="text2" exp=""由P_0為發光點,I_0為第一個反射點""/>
<element type="text" label="text2">
<show object="true" label="false" ev="40"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<font serif="true" sizeM="1" size="0" style="1"/>
<absoluteScreenLocation x="41" y="28"/>
</element>
<expression label="text6" exp=""可調整P_0和I_0之位置""/>
<element type="text" label="text6">
<show object="true" label="false" ev="40"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<absoluteScreenLocation x="33" y="431"/>
</element>
<expression label="F_1" exp="F" type="point" />
<element type="point" label="F_1">
<show object="true" label="false" ev="8"/>
<condition showObject="¬PAR"/>
<objColor r="175" g="238" b="238" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<coords x="5" y="0" z="1"/>
<pointSize val="4"/>
<pointStyle val="0"/>
</element>
<element type="point" label="II">
<show object="false" label="false" ev="4"/>
<objColor r="77" g="77" b="255" alpha="0"/>
<layer val="1"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<coords x="NaN" y="NaN" z="NaN"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="boolean" label="F1">
<value val="true"/>
<show object="true" label="true" ev="3"/>
<condition showObject="FF ≠ 0"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="26" y="263"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="If(FF,If(F1,SetValue[PARA,false],SetValue[PARA,true]),SetValue[F1,false])
If(F1,SetValue[I_0,Intersect(Ray(P_0+0.001*Vector(P_0, F_1), F_1), c)])
If(F1,StartAnimation[t,false])
If(F1,SetValue[i,1])
If(F1,SetValue[t,0])
If(start&&F1,SetValue[kk,k])
If(start&&F1,StartAnimation[t,true])"/>
<caption val="通過焦點"/>
</element>
<element type="boolean" label="PARA">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<condition showObject="FF ≠ 0"/>
<objColor r="255" g="255" b="255" alpha="0"/>
<layer val="0"/>
<labelOffset x="25" y="295"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<ggbscript onUpdate="If(FF,If(PARA,SetValue[F1,false],SetValue[F1,true]),SetValue[PARA,false])
If(PARA,SetValue[I_0,Intersect(OrthogonalLine(P_0, f), c)])
If(PARA,StartAnimation[t,false])
If(PARA,SetValue[i,1])
If(PARA,SetValue[t,0])
If(start&&PARA,SetValue[kk,k])
If(start&&PARA,StartAnimation[t,true])"/>
<caption val="平行對稱軸"/>
</element>
<expression label="a" exp="Length[S_I] - If[II ≟ II, 0, 1]" />
<element type="numeric" label="a">
<value val="0"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<command name="If">
<input a0="II ≟ II" a1="1" a2="-1"/>
<output a0="testa"/>
</command>
<element type="numeric" label="testa">
<value val="-1"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
</construction>
</geogebra>