素因数分解交互工具
2020-10-09 13:25
本 GeoGebra 范例演示正整数的素因数分解过程。用户通过输入框输入任意正整数,程序调用 Factors 命令自动计算其全部素因数,并借助 Zip 与 Append 命令对结果进行列表整理,最终以 LaTeX 排版格式清晰呈现完整的分解式。该工具适用于数论与代数基础教学,帮助学生直观验证算术基本定理,理解唯一分解性,并掌握素因数分解的计算方法与规范书写。
GeoGebra 画板及绘图内容加载中,请稍等……
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.596.0" app="classic" platform="d" id="ab84aa6d-233c-41f4-ba3f-092722f1cab9" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="748" height="617" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.3917112299465241" orientation="1" />
</panes>
<views>
<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,3" size="300" 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="300" window="100,100,600,400" />
<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" size="664" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="1" size="715" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="3" size="293" 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" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="4097" visible="false" inframe="false" stylebar="true" location="1" size="691" window="330,89,700,550" />
<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 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 | | 100011 100011 100005 100006 100007 100008 100010" position="1" help="false" />
<input show="true" cmd="true" top="true" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="20"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="715" height="386"/>
<coordSystem xZero="150.07657166109382" yZero="512.0830756791601" scale="88.84802534621535" yscale="88.8480253462154"/>
<evSettings axes="false" 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="9" grid="15"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="0" showNumbers="true" tickDistance="1.0" tickExpression="1"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true" tickDistance="1.0" tickExpression="1"/>
</euclidianView>
<algebraView>
<mode val="1"/>
<auxiliary show="true"/>
</algebraView>
<kernel>
<uses3D val="true"/>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="radiant"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2.0" max="2.0" step="1.0"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="numeric" label="n">
<value val="9003.0"/>
<show object="true" label="true"/>
<objColor r="255" g="0" b="0" alpha="0.25" fillType="1" hatchAngle="75" hatchDistance="10"/>
<bgColor r="0" g="0" b="0" alpha="63"/>
<layer val="0"/>
<labelOffset x="-30" y="-9"/>
<labelMode val="3"/>
<slider min="2" max="100000" absoluteScreenLocation="true" width="400.0" x="123.0" y="71.0" fixed="true" horizontal="true" showAlgebra="true"/>
<pointSize val="15.0"/>
<lineStyle thickness="20" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
<auxiliary val="true"/>
<ggbscript onUpdate=""/>
<caption val="$\scalebox{1.5}{拖我}$"/>
</element>
<command name="Textfield">
<input a0="n"/>
<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="99" y="128"/>
<labelMode val="3"/>
<fixed val="true"/>
<selectionAllowed val="false"/>
<auxiliary val="true"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
<font serif="false" sizeM="1.4" size="8" style="0"/>
<length val="5"/>
<caption val="正整数"/>
</element>
<command name="Factors">
<input a0="n"/>
<output a0="M_1"/>
</command>
<element type="list" label="M_1">
<objColor r="0" g="100" b="0" alpha="0.10000000149011612"/>
<selectionAllowed val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<angleStyle val="0"/>
</element>
<command name="Zip">
<input a0="power[Element[p, 1], Element[p, 2]]" a1="p" a2="M_1"/>
<output a0="L_1"/>
</command>
<element type="list" label="L_1">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<angleStyle val="0"/>
<symbolic val="true" />
</element>
<expression label="text1" exp=""\times""/>
<element type="text" label="text1">
<show object="false" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="2.0" size="20" style="0"/>
<startPoint x="1.462310814817007" y="2.8147285739289956" z="1.0"/>
</element>
<command name="Append">
<input a0="L_1(1)" a1="Sequence[text1 + (L_1(i)), i, 2, Length[L_1]]"/>
<output a0="L_2"/>
</command>
<element type="list" label="L_2">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
<pointSize val="3"/>
<angleStyle val="0"/>
</element>
<command name="LaTeX">
<input a0=""" + n + "=" + (Sum[L_2])"/>
<output a0="text2"/>
</command>
<element type="text" label="text2">
<show object="true" label="false" ev="8"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="false" sizeM="2.0" size="20" style="0"/>
<auxiliary val="true"/>
<absoluteScreenLocation x="110" y="226"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
</element>
<expression label="text3" exp=""分解素(质)因数""/>
<element type="text" label="text3">
<show object="true" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<bgColor r="208" g="240" b="192" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="8" style="0"/>
<auxiliary val="true"/>
<absoluteScreenLocation x="305" y="129"/>
<ggbscript val=""/>
<ggbscript onUpdate=""/>
</element>
</construction>
</geogebra>