{VERSION 6 0 "IBM INTEL NT" "6.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "Times" 1 12 0 0 0 1 2 2 2 2 2 2 1 1 1 1 }1 1 0 0 0 0 1 0 1 0 2 2 0 1 }{PSTYLE "Text \+ Output" -1 2 1 {CSTYLE "" -1 -1 "Courier" 1 10 0 0 255 1 0 0 0 0 0 1 3 0 3 0 }1 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }{PSTYLE "" 2 6 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 2 0 0 0 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }} {SECT 0 {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "restart:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 14 "with(Maplets):" }}}{EXCHG {PARA 0 " > " 0 "" {MPLTEXT 1 0 24 "with(Maplets[Elements]):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 149 "MyFunction:=proc()\n local s:\n s:=Maplets :-Tools:-Get('Sl'):\n Maplets:-Tools:-Set('Number'=s);\n Maplets:-Tool s:-Set('Result'=evalf(sin(s)));\nend proc:" }}}{EXCHG {PARA 0 "> " 0 " " {MPLTEXT 1 0 76 "RW:=proc()\n Maplets:-Tools:-Set('NumSl'=Maplets:-T ools:-Get('Sl'))\nend proc:" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 805 "M:=Maplet(\n Window(\n layout=\n BoxLayout(\n [BoxRow(\n \+ BoxCell(\n Slider['Sl'](0..100, 10,onchange='ReadWrite',\n \+ 'showticks', 'majorticks'=20, 'minorticks'=10,'snapticks'=false) )\n ),\n BoxRow(\n BoxCell(\n Label(\"Number from \+ Slider\")\n ),\n BoxCell(\n TextField['NumSl'](10,hali gn=right)\n )\n ),\n BoxRow(\n BoxCell(halign=right, Label(\"x =\")),\n BoxCell(halign=left,TextField[Number](3,halign =right)),\n BoxCell(halign=right,Label(\"sin(x) =\")),\n Box Cell(halign=left,TextField[Result](10,halign=right))\n ),\n Bo xRow(\n BoxCell(\n Button(\" Get \",onclick= 'Fs')\n )\n )\n ] \n )\n ),\n Action['Fs'](\n Evaluate( function=\"MyFunction\")\n ),\n Action['ReadWrite'](\n Evaluate(funct ion='RW')\n )\n):" }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 11 "Displa y(M);" }}{PARA 6 "" 1 "" {TEXT -1 38 "Initializing Java runtime enviro nment." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 0 "" }}}}{MARK "3 0 0 " 47 }{VIEWOPTS 1 1 1 3 2 1804 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }