3.159.access.ttknet.ru писал(а):
ЕГЭ на HiAsmскоро будет такими темпами
еще и автоматически будет определять тип задания
------------ Дoбавленo в 18.51:
iarspider писал(а):
Add(Edit,6662796,511,24)
{
Left=260
Top=5
Text="-5;3"
Alignment=2
}
Add(MainForm,10715029,98,609)
{
Height=130
BorderStyle=1
Position=1
}
Add(Edit,608451,168,77)
{
Left=25
Top=5
Width=160
Text="2x^3+15x^2+24x+3"
}
Add(Replace,10996857,168,126)
{
SubStr="-"
DestStr="+-"
link(onReplace,13919562:doEnum,[])
link(Str,308926:Var2,[])
}
Add(Str_Enum,13919562,210,126)
{
Delimiter="+"
OnlyDivGroup=1
link(onEnum,16695198:doAdd,[])
link(onEndEnum,890255:doEnum,[(251,139)(251,188)])
}
Add(ArrayEnum,890255,301,182)
{
link(onItem,10365197:doCompare,[])
link(Array,16695198:Array,[])
}
Add(StrMask,10365197,343,182)
{
Mask="*x*"
link(onTrue,435401:doCompare,[])
}
Add(StrMask,435401,385,189)
{
Mask="*x^*"
link(onFalse,4408053:doReplace,[])
link(onTrue,11807766:doSplit,[(425,202)(425,230)])
}
Add(Replace,4408053,434,189)
{
SubStr="x"
link(onReplace,10779754:doWork1,[(474,195)])
}
Add(MultiElementEx,11807766,434,224)
{
link(onReplace,10779754:doWork3,[(474,230)])
}
BEGIN_SDK
Add(EditMultiEx,6226060,21,21)
{
WorkCount=#7:doSplit|
EventCount=#9:onReplace|
link(doSplit,2349533:doSplit,[(35,27)(35,76)])
}
Add(StrPart,2349533,49,70)
{
Char="x^"
Point(Left)
Point(Right)
link(onSplit,4415804:doOperation,[])
}
Add(Math,4415804,91,70)
{
OpType=2
link(onResult,14569067:doOperation,[])
link(Op1,15547963:Var,[])
link(Op2,14562251:Var,[])
}
Add(LineBreak,7234181,49,119)
{
Type=1
link(Data,2349533:Left,[])
Primary=[15547963,42,-70]
}
Add(LineBreak,14871102,56,119)
{
Type=1
link(Data,9116303:Var2,[])
Primary=[14562251,42,-70]
}
Add(Math,14569067,133,70)
{
OpType=1
Op2=1
link(onResult,765364:doStrCatDlm,[])
link(Op1,16075159:Var,[])
}
Add(GetDataEx,9116303,56,105)
{
link(Data,2349533:Right,[])
}
Add(LineBreak,1454064,63,119)
{
Type=1
link(Data,9116303:Var3,[(69,110)])
Primary=[16075159,70,-70]
}
Add(StrCatDelim,765364,175,70)
{
Delimiter="x^"
link(onStrCatDlm,13203915:doReplace,[])
link(Str1,4415804:Result,[(181,58)(169,58)(169,113)(97,113)])
link(Str2,14569067:Result,[(188,58)(210,58)(210,119)(139,119)])
}
Add(Replace,13203915,217,70)
{
SubStr="^1"
link(onReplace,6226060:onReplace,[(285,76)(285,27)])
}
END_SDK
Add(HubEx,7817358,560,210)
{
link(onEvent,8497955:doAdd,[])
}
Add(StrPart,2369530,525,217)
{
Char="x"
link(onPart,7817358:doWork3,[(564,230)])
}
Add(StrMask,11405798,483,210)
{
Mask="*x*"
link(onFalse,7817358:doWork2,[])
link(onTrue,2369530:doSplit,[])
}
Add(Button,8660459,42,119)
{
Left=320
Top=5
Width=60
Caption="Посчитать"
link(onClick,16253306:doEvent1,[])
}
Add(Hub,16253306,84,119)
{
OutCount=3
link(onEvent1,4770554:In,[])
link(onEvent2,10996857:doReplace,[])
link(onEvent3,9798752:In,[])
}
Add(MultiElementEx,11594900,644,210)
{
@Hint=#52:решаем квадратное уравнение и проверяем на вхождения|
link(onTrue,5672363:In,[])
link(Array,8497955:Array,[(650,198)(636,198)(636,267)(622,267)])
link(Op2,2614136:Var,[])
link(Op21,2887656:Var,[])
}
BEGIN_SDK
Add(EditMultiEx,15730475,329,252)
{
WorkCount=#7:doTimer|
EventCount=#6:onTrue|
DataCount=#5:Array|3:Op2|4:Op21|
Width=475
Height=263
link(doTimer,8963802:doTimer,[(339,258)(339,307)])
}
Add(MathParse,6162599,546,413)
{
DataCount=3
MathStr="(-1*(%2)+sqrt((%2)^2-4*(%1)*(%3)))/(2*(%1))"
link(onResult,12349149:doEvent1,[])
link(X1,2237075:Var3,[(552,354)])
link(X2,2763606:Var3,[(559,402)])
link(X3,13606847:Var3,[(566,381)])
}
Add(MathParse,7454912,504,413)
{
DataCount=3
MathStr="(-1*(%2)-sqrt(%2^2-4*(%1)*(%3)))/(2*(%1))"
link(onResult,6162599:doCalc,[])
link(X1,2237075:Var2,[])
link(X2,2763606:Var2,[])
link(X3,13606847:Var2,[])
}
Add(Memory,5512985,448,413)
{
Point(Data)
link(onData,7454912:doCalc,[])
}
Add(Memory,14455666,448,315)
{
Point(Data)
}
Add(Memory,16294278,448,364)
{
Point(Data)
}
Add(Hub,12349149,588,413)
{
link(onEvent1,8558365:doData,[])
link(onEvent2,1210796:doData,[(609,426)(609,475)])
}
Add(GetDataEx,13606847,518,376)
{
Angle=3
link(Data,5512985:Value,[(489,381)(489,457)(454,457)])
}
Add(GetDataEx,2763606,511,397)
{
Angle=3
link(Data,16294278:Value,[(454,402)])
}
Add(GetDataEx,2237075,504,349)
{
Angle=3
link(Data,14455666:Value,[(454,354)])
}
Add(LineBreak,9668623,546,455)
{
Type=1
link(Data,6162599:Result,[])
Primary=[12558187,70,-63]
}
Add(LineBreak,11302435,504,455)
{
Type=1
link(Data,7454912:Result,[])
Primary=[15626002,112,-7]
}
Add(ArrayEnum,15475630,357,357)
{
link(onItem,5928110:doEvent,[])
link(Array,15730475:Array,[(363,324)(335,324)])
}
Add(LineBreak,2997335,364,399)
{
Type=1
link(Data,15475630:Index,[])
Primary=[10970638,35,-63]
}
Add(Timer,8963802,371,301)
{
Interval=1
Enable=1
AutoStop=1
link(onTimer,15475630:doEnum,[(415,307)(415,335)(345,335)(345,363)])
}
Add(If_else,15831830,672,413)
{
Type=2
link(onTrue,11107557:doCompare,[])
link(Op2,15730475:Op2,[(685,273)(342,273)])
}
Add(If_else,11107557,714,413)
{
Type=1
link(onTrue,15730475:onTrue,[(793,419)(793,258)])
link(Op2,15730475:Op21,[(727,271)(349,271)])
}
Add(HubEx,15690820,658,413)
{
link(onEvent,15831830:doCompare,[])
}
Add(DoData,8558365,616,413)
{
link(onEventData,15690820:doWork2,[])
link(Data,12558187:Var,[])
}
Add(DoData,1210796,616,469)
{
link(onEventData,15690820:doWork3,[(662,475)])
link(Data,15626002:Var,[])
}
Add(IndexToChanel,5928110,399,357)
{
Count=3
Point(Index)
link(onEvent1,14455666:doValue,[(439,363)(439,321)])
link(onEvent2,16294278:doValue,[])
link(onEvent3,5512985:doValue,[(439,377)(439,419)])
link(Index,10970638:Var,[])
}
END_SDK
Add(Label,2424607,833,56)
{
Left=5
Top=5
Width=20
Height=20
Font=[MS Sans Serif,10,1,0,1]
Caption="y="
}
Add(Label,14722588,875,56)
{
Left=185
Top=5
Width=81
Height=17
Font=[MS Sans Serif,8,1,0,1]
Transparent=0
Caption="на отрезке ["
}
Add(Label,13666624,917,56)
{
Left=310
Top=5
Width=7
Height=17
Font=[MS Sans Serif,8,1,0,1]
Caption="]"
}
Add(StyleXP,16269506,98,644)
{
}
Add(StrPart,834924,511,63)
{
Char=";"
Point(Left)
Point(Right)
link(onSplit,7166340:doWork2,[])
link(onPart,7166340:doWork3,[(551,76)])
link(Str,6662796:Text,[])
}
Add(LineBreak,13929091,511,105)
{
Type=1
link(Data,834924:Left,[])
Primary=[2614136,140,70]
}
Add(LineBreak,2575631,518,105)
{
Type=1
link(Data,834924:Right,[])
Primary=[2887656,140,84]
}
Add(StrList,16695198,287,126)
{
}
Add(StrList,8497955,602,210)
{
link(onChange,11594900:doTimer,[])
}
Add(ArrayEnum,13956017,70,476)
{
link(onItem,12812316:doCompare,[])
link(Array,3366494:Array,[])
}
Add(Timer,16666122,98,420)
{
Interval=50
Enable=1
AutoStop=1
link(onTimer,13956017:doEnum,[(140,426)(140,470)(58,470)(58,482)])
}
Add(Replace,13872434,175,476)
{
SubStr="x"
DestStr="*%1"
link(onReplace,16618314:doWork2,[])
link(Str,9374902:Var2,[])
}
Add(GetDataEx,308926,168,112)
{
link(Data,608451:Text,[])
}
Add(MathParse,3649743,266,469)
{
DataCount=1
MathStr=""
Point(doMathStr)
link(onResult,7167037:doString,[])
link(X1,7587623:Var2,[])
}
Add(Hub,9167926,231,476)
{
OutCount=3
link(onEvent1,3649743:doMathStr,[])
link(onEvent2,7167037:doMask,[(261,489)(261,529)(300,529)(300,482)])
link(onEvent3,3649743:doCalc,[(255,496)(255,475)])
}
Add(StrList,3366494,56,420)
{
link(onChange,16666122:doTimer,[])
}
Add(Memo,1814233,420,469)
{
Top=27
Width=384
Height=65
Align=4
}
Add(LineBreak,8492114,7,420)
{
link(Out,11719162:doWork2,[])
Primary=[5672363,679,-210]
}
Add(FormatStr,4315296,350,469)
{
DataCount=3
Mask="y(%1)=%2=%3"
link(onFString,1814233:doAdd,[])
link(Str1,13775503:Var3,[(356,457)])
link(Str3,8898600:Var,[])
}
Add(LineBreak,4156722,266,511)
{
Type=1
link(Data,3649743:Result,[])
Primary=[8898600,98,-70]
}
Add(LineBreak,9781369,7,406)
{
link(Out,11719162:doWork1,[(46,412)])
Primary=[4728528,553,-343]
}
Add(HubEx,7166340,547,63)
{
link(onEvent,4728528:In,[])
}
Add(HubEx,11719162,42,420)
{
link(onEvent,3366494:doAdd,[])
}
Add(LineBreak,5432144,133,140)
{
Type=1
link(Data,308926:Var1,[(139,117)])
Primary=[11872339,42,301]
}
Add(GetDataEx,7587623,266,452)
{
link(Data,13252661:Var,[])
}
Add(FormatStr,7167037,308,469)
{
DataCount=1
Mask=""
Point(doMask)
link(onFString,4315296:doString,[])
link(Str1,13775503:Var2,[])
}
Add(GetDataEx,13775503,308,452)
{
Angle=3
link(Data,7587623:Var3,[])
}
Add(If_else,12812316,112,476)
{
Type=2
Op2=Integer(0)
link(onTrue,13872434:doReplace,[])
link(onFalse,4730105:doReplace,[(160,489)(160,524)])
}
Add(Replace,4730105,175,518)
{
SubStr="x"
DestStr="*(%1)"
link(onReplace,16618314:doWork3,[(221,524)])
link(Str,9374902:Var1,[(181,510)(166,510)(166,467)])
}
Add(GetDataEx,9374902,175,462)
{
link(Data,11872339:Var,[])
}
Add(HubEx,16618314,217,476)
{
link(onEvent,9167926:doEvent1,[])
}
Add(Hub,13588234,63,280)
{
OutCount=4
link(onEvent1,9060552:In,[])
link(onEvent2,1616392:In,[])
link(onEvent3,15413648:In,[])
link(onEvent4,4489527:In,[])
}
Add(LineBreak,4025799,28,280)
{
link(Out,13588234:doEvent1,[])
Primary=[4770554,77,-161]
}
Add(LineBreak,9764716,476,63)
{
link(Out,834924:doSplit,[])
Primary=[9798752,-371,70]
}
Add(LineBreak,14187084,252,133)
{
link(Out,16695198:doClear,[])
Primary=[9060552,-168,147]
}
Add(LineBreak,15375838,567,217)
{
link(Out,8497955:doClear,[])
Primary=[1616392,-483,70]
}
Add(LineBreak,3658174,7,427)
{
link(Out,3366494:doClear,[])
Primary=[15413648,77,-133]
}
Add(LineBreak,10514226,385,476)
{
link(Out,1814233:doClear,[])
Primary=[4489527,-301,-175]
}
Add(InfoTip,15904384,21,266)
{
Info=#7:Очистка|
Width=113
Height=74
}
Add(HubEx,10779754,470,210)
{
link(onEvent,11405798:doCompare,[])
}
Add(LineBreak,4117719,70,518)
{
Type=1
link(Data,13956017:Item,[])
Primary=[13252661,196,-84]
}