diff --git a/CutWord.m b/CutWord.m new file mode 100644 index 0000000..331223c --- /dev/null +++ b/CutWord.m @@ -0,0 +1,76 @@ +function bounds_out = CutWord(curve, maxStep, minStep, iterNum, pointNum) +% determines local minima on the curve by the method of fastest descent with decreasing step + % starting points are randomly selected + startPoints = fix( rand(pointNum, 1) .* size(curve, 1) ); + % transition from maxStep to minStep + step = fix( linspace(maxStep, minStep, iterNum) ); + % initialization + bounds = startPoints; + + % finding local minima + % pointNum random points raise local minima + for i = 1:pointNum + for j = 1:iterNum + if ( bounds(i) + step(j) ) > size(curve, 1) + bounds(i) = size(curve, 1); + break; + elseif ( bounds(i) - step(j) ) < 1 + bounds(i) = 1; + break; + elseif ( curve(bounds(i) + step(j)) < curve(bounds(i)) ) + bounds(i) = bounds(i) + step(j); + elseif ( curve(bounds(i) - step(j)) < curve(bounds(i)) ) + bounds(i) = bounds(i) - step(j); + end + end + end + + % local minimum has more than 0 hits + sum(1:size(curve, 1)) = 0; + sum = sum'; + for i = 1:size(bounds, 1) + sum(bounds(i)) = sum(bounds(i)) + 1; + end + + % new array of local minima without zeros + j = 1; + for i = 1:size(sum, 1) + if sum(i) > 0 + bounds_preOut(j) = i; + j = j + 1; + end + end + bounds_preOut = bounds_preOut'; + + % if the two local minima are too close to each other, take the minima with the minimum value + % repeat until such points disappear + minDist = maxStep; + success = 0; + while ~success + success = 1; + i = 1; + j = 1; + + while ( i < length(bounds_preOut) ) + if ( bounds_preOut(i + 1) - bounds_preOut(i) < minDist ) + if ( curve( bounds_preOut(i + 1) ) < curve( bounds_preOut(i) ) ) + bounds_out(j) = bounds_preOut(i + 1); + else + bounds_out(j) = bounds_preOut(i); + end + i = i + 2; + success = 0; + else + bounds_out(j) = bounds_preOut(i); + i = i + 1; + end + j = j + 1; + end + % last point + bounds_out(j) = bounds_preOut(end); + + bounds_preOut = bounds_out; + bounds_out = []; + end + + bounds_out = bounds_preOut'; \ No newline at end of file diff --git a/CutWordTests.m b/CutWordTests.m new file mode 100644 index 0000000..3b93dfc --- /dev/null +++ b/CutWordTests.m @@ -0,0 +1,45 @@ +% common parameters +maxStep = 100; +minStep = 1; +iterNum = 50; +pointNum = 50; + +%% Test 1: Sofia +curve = [0.0204142962708217;0.0210253587594066;0.0217086841638050;0.0224891990157621;0.0233477506570083;0.0241901191520994;0.0252250632170557;0.0263210024429852;0.0275699163982750;0.0288312784763565;0.0302168026404862;0.0316490335016241;0.0332114408660065;0.0347218199264171;0.0364102015214488;0.0381793671632107;0.0399100747006638;0.0418948351904907;0.0435680975782047;0.0454034993042850;0.0473657652639373;0.0494530421461636;0.0516708020028426;0.0540447436454161;0.0561474893639298;0.0585414867396555;0.0611142784936932;0.0635806562464920;0.0662407911928570;0.0695201920792568;0.0720075169594810;0.0751732947941175;0.0783877738491583;0.0821012640171697;0.0856078401481412;0.0897336481679045;0.0946963113012072;0.0993614013332725;0.104386458771656;0.109913133288038;0.116225245313225;0.122653716583108;0.129999444126656;0.137205248807662;0.145290683224952;0.153557670910671;0.162727162893358;0.171799827698762;0.181501187965429;0.191192750361189;0.200707226969470;0.211581266256951;0.223781424304366;0.234074685352855;0.244956828915382;0.257609978192057;0.267918959776826;0.279427506654811;0.289749454930811;0.301097182852575;0.312831331331688;0.323789218420950;0.334989484928767;0.347183313755504;0.357472046377320;0.369335554973735;0.381149321004807;0.392338168969535;0.404039178556188;0.416249834566585;0.428616209310398;0.441160321929263;0.453904822890238;0.467002840017157;0.480097386419799;0.492448101729930;0.506436134518660;0.519597293737339;0.532934924461580;0.545174631268850;0.557893262144639;0.570551205945714;0.582403869645389;0.594284125675505;0.604584473014653;0.615050851753006;0.624527842279075;0.633389151689388;0.641256864171369;0.649466456774682;0.656042895860552;0.663064712705110;0.670026475796613;0.677013865903344;0.682437542962707;0.688550608566137;0.692786411639558;0.697914907082403;0.701941502643347;0.705095378572444;0.707893294553903;0.710066497959247;0.713356091165724;0.717736538366426;0.720598613490602;0.725706712023240;0.726026507147284;0.729429974600203;0.731334511972601;0.733888935359483;0.737042480417695;0.741114945421192;0.746110102283864;0.749513813130141;0.752746095634677;0.755920310750117;0.758054305495787;0.759708330674941;0.760734107634553;0.763743428681236;0.763547963267477;0.765299403238580;0.764165882319942;0.763511958650441;0.763993348464273;0.762885751430183;0.761610821036799;0.761556285481700;0.762807207475230;0.761910686757544;0.763155826670854;0.762482204143997;0.762652023368030;0.763059226268065;0.761407839157845;0.760847648493747;0.761413105680339;0.760169622096266;0.759441603555261;0.759101043885561;0.759974969616927;0.761765304597187;0.763911550624735;0.766374138053804;0.769701769142518;0.773378948334883;0.779299634736112;0.787229420266469;0.795304511977124;0.802384753757513;0.811400375452814;0.819964262636334;0.829072158143914;0.838218004576739;0.846487619126287;0.857594628769330;0.865130357237136;0.873031593026748;0.882711032066720;0.890055889927868;0.896563101357978;0.903329803401383;0.908840812392806;0.912693170642359;0.912956673812089;0.914221285712564;0.914493590505178;0.913183433595429;0.909314647868306;0.909627721069548;0.902836158524028;0.898050912838935;0.892166850404804;0.887290967976129;0.877428442008141;0.868713207009675;0.860630700331981;0.852652687800698;0.843288345984752;0.835999706913994;0.829713783552532;0.824208153690691;0.819667118381471;0.815779749234212;0.813637208346237;0.810256937146874;0.809132710448517;0.804394089322305;0.802799982367668;0.800451541466657;0.798041395234732;0.796650905607782;0.795334180572739;0.795672214583028;0.790793617695207;0.790068370991649;0.790149922498219;0.789815192228532;0.789589503007336;0.788650957042249;0.789091303445275;0.786592835921869;0.785774484089023;0.784591339660006;0.782454171034021;0.781444725594956;0.782121223844598;0.778917171793940;0.777376404965489;0.774842677892201;0.773554826690612;0.771907910930345;0.772918318815155;0.769378289827618;0.767457966562452;0.766946792487277;0.762156901945556;0.761275718781600;0.759374214904040;0.759955969766673;0.757286126635982;0.755000822768128;0.754437962040215;0.750074026280451;0.745885974424535;0.743446340953872;0.740014249598205;0.740354425801090;0.739544000188505;0.738785840060145;0.737206510343876;0.737186918020407;0.736507162291419;0.736485792260443;0.736209197356920;0.736732581167921;0.737046815550710;0.739952150652222;0.738841194076667;0.739404461949224;0.738474008125781;0.738451659846365;0.736985847118233;0.736661744147580;0.735300784217897;0.735149622414526;0.734138138757451;0.734808809456729;0.738378692643997;0.734982178492945;0.735980011812223;0.735712913641517;0.734960361993577;0.734907159417765;0.734618884379830;0.738154404655555;0.733234371495452;0.733757572569163;0.731801667050110;0.727426331689966;0.726852579010039;0.724876409537010;0.721553104223667;0.718721799778803;0.716091966762769;0.713003491541957;0.709914962784263;0.706574893562231;0.704139810176484;0.702147762367620;0.702136239661743;0.701494473007476;0.702715351010608;0.701693216612220;0.702686349176969;0.705068035873316;0.706761028279019;0.711693674811509;0.711226193347191;0.713575110822767;0.717356487162681;0.722351922387245;0.725157178184940;0.728281227793745;0.733040453699208;0.735523034981100;0.739249697846625;0.739853971195912;0.742258904112068;0.743277286259563;0.744461380236693;0.744712875180375;0.745158185546727;0.744777724554577;0.743614320159321;0.743126811877781;0.740060302263363;0.736977468816913;0.732464167876233;0.727492902978043;0.725680644230280;0.722483222599735;0.721012134395479;0.720402491483382;0.717458000740939;0.719050047257476;0.715639254737344;0.716109845608477;0.714468967589244;0.714787106795321;0.717648999852133;0.715705138016415;0.717833779464608;0.717011056857818;0.715061260347683;0.715561607644256;0.714400160754668;0.713036361493485;0.714439838186649;0.715066155070211;0.715007128661588;0.716249337763049;0.719906511508627;0.719315401695411;0.724030378882135;0.725006124175451;0.726276050121801;0.728468014020594;0.729499927516562;0.730919405218291;0.729102168385068;0.728748481689115;0.728517160384339;0.726290084059384;0.724272009658156;0.720670131041448;0.718338599522764;0.715050262707596;0.711510184762187;0.708293697007551;0.705520668207773;0.702694613601135;0.699741061995567;0.700637912247926;0.698523646857848;0.695799323996356;0.697903866757124;0.696825626930559;0.699541675676639;0.700370095915566;0.702206663032285;0.705925072937001;0.706429775121148;0.707904199505898;0.709200132841202;0.708250776246128;0.707469162409955;0.706518509281397;0.706094129954210;0.703235709781529;0.701149653821322;0.700250263670941;0.698374975713103;0.694756207339687;0.693065281790226;0.689745501665176;0.685462364844056;0.681413791264122;0.678240545630078;0.673164781338253;0.666666512745491;0.661608144187858;0.656145677121812;0.652566794315343;0.650458772844934;0.643114991771129;0.636705748711230;0.631639492890185;0.624720029336320;0.618564245981303;0.610584829096957;0.602912669847143;0.597238712678530;0.586396830792199;0.577156134704394;0.567534002274225;0.559157196818877;0.548880136186531;0.540788814913954;0.531987936355642;0.523743190372248;0.516364736713514;0.507533346116740;0.500938801590859;0.493282551585282;0.488079394709561;0.485320008533919;0.485251886577906;0.485580817162345;0.487671425945998;0.490794864646290;0.494568637863935;0.498974468721111;0.502611515771298;0.506445923738072;0.509342691575509;0.512865802789338;0.518318927512793;0.519028809800945;0.522868703319524;0.525555929239364;0.526308391435886;0.527312678717102;0.528592480736706;0.530040873707981;0.530527811534089;0.531229264479461;0.532964180241930;0.534528868796635;0.534990996635951;0.536538567439050;0.534397411703518;0.533564837273261;0.530967869999091;0.529241431771117;0.525729180104228;0.523362491262551;0.517324678877716;0.512834690788812;0.508422212836385;0.504307321450231;0.498343775384741;0.492764033303122;0.486814334981513;0.480721532030980;0.474868823367162;0.469393321513538;0.465093600911976;0.459698521713336;0.454203951690959;0.450743115225850;0.447242194269555;0.444233776489675;0.442889903493397;0.440184594161193;0.437869684731872;0.436291326339636;0.435471944166186;0.434060607272731;0.435342757416359;0.433960630106436;0.431843893798270;0.430514109202802;0.429877525309905;0.428724104208867;0.429050511033108;0.425997802955370;0.424282346434703;0.423180064141157;0.420274175963906;0.416978769465734;0.414500199738725;0.412169576759158;0.410914915160595;0.408500987145461;0.407406216471501;0.408026361074701;0.407106502431332;0.406703615948845;0.406426171678481;0.406823406070859;0.405740095623511;0.405227101700948;0.403330055915947;0.401191036864052;0.400130470559588;0.398556385707607;0.395601460365158;0.393322139372468;0.390943590611932;0.388428230391072;0.386409122643338;0.383513142667474;0.382656729809811;0.379009367447034;0.377797993754680;0.376143177422050;0.374067136632190;0.371815812588109;0.369991004607639;0.370363313299181;0.368124288083859;0.365440427064765;0.358801447234954;0.356600874737917;0.352391731958085;0.348592984137115;0.345748980015930;0.344515958574072;0.343183815304240;0.343456832640848;0.339668191673848;0.342359101915335;0.339709883087406;0.341357510081576;0.349105452708945;0.352340403502399;0.353572602236602;0.354124527829076;0.360691620717555;0.368624506356102;0.377609618880572;0.386339831076658;0.394984369140387;0.405771464380286;0.417367919051865;0.427700388274528;0.436821693580529;0.453097737844953;0.465208620227919;0.478849755369793;0.493512926153926;0.515958283070353;0.536574360472779;0.548460639904411;0.565117568529649;0.586461827245395;0.602971299484881;0.624241345283063;0.642735492644773;0.658997187486307;0.678250785017395;0.694126515998986;0.708505236869776;0.721301426940324;0.737248065033974;0.747261359871625;0.753164884107583;0.767457136901826;0.782894691387012;0.783417465746114;0.783685501483784;0.794178835099016;0.799490379668921;0.806167819929571;0.814002651796770;0.822192458972045;0.827684254962281;0.838044265451806;0.847987341637655;0.856297111274301;0.866368869685054;0.877335970628892;0.880739664015792;0.889646934670134;0.903608035291856;0.908051059716013;0.909864356080639;0.918099617898620;0.926939575705522;0.937703917435133;0.950960011989380;0.963310721296091;0.971725644775437;0.983113918968655;0.992641002895403;1.00217300720036;1.01402915416566;1.01989723293075;1.02577029475124;1.02840711510928;1.03428802805210;1.03505583241389;1.03184567661551;1.03414429896106;1.03269862278699;1.02919739957304;1.02632909673062;1.02623314170051;1.02463768772709;1.02324809500729;1.02135090957262;1.02015375760788;1.03170983073918;1.03384746938206;1.03171150645637;1.02934305347339;1.03379007243428;1.02701549307285;1.02051668552335;1.01718855824079;1.00852242664972;1.00298792187759;0.996017399606531;0.992603288661994;0.981256165505273;0.975360988096047;0.968687204274147;0.969220709157830;0.966536361160767;0.968104719281771;0.954120654227394;0.949097913546374;0.952390688014714;0.943217543151856;0.931830843591010;0.933808684285085;0.928377782752529;0.925297017870237;0.927162186628852;0.928018329725216;0.918577158203145;0.917482141742830;0.918798460442411;0.918193764900498;0.921673065328288;0.909363430689557;0.903857561376733;0.906581484636479;0.909326080983082;0.903780052810797;0.899629880892620;0.901191176159952;0.904910696315073;0.915661263817002;0.920758780225264;0.911903474406415;0.920618332301572;0.929184564704463;0.932381869986264;0.922571445665587;0.925725648974222;0.925454830648371;0.928917825346760;0.933673154210788;0.942409135116659;0.942459927380669;0.944340214554577;0.944927058531689;0.947633692400289;0.946687834525247;0.953926516989688;0.965181894001538;0.971332304845041;0.966207552880208;0.969747818323438;0.974678141271946;0.974713215785578;0.976962843612453;0.987872355330397;0.998570913245278;0.997870717480534;1.00434329052729;0.999708608948506;1.00440429671388;1.01076310213576;1.02105079701383;1.01929627504315;1.02866541669586;1.03559163805375;1.04701880258423;1.05048288751487;1.04899126865023;1.05736025421912;1.07280265467404;1.07960033167938;1.06969674342905;1.07108964810103;1.07773619334436;1.08167892383565;1.07612781022388;1.07780483114599;1.07967417352013;1.08758475368147;1.09201826259088;1.08969503846581;1.08047510511445;1.08857114819241;1.08499839945651;1.08422544383284;1.06406838273174;1.06011012091852;1.06082521265560;1.04580704455674;1.04667217016196;1.03948723368647;1.03642052443814;1.04405954825410;1.04145640389161;1.03866970776808;1.03355044878021;1.03747189580683;1.03754097813093;1.02585736099238;1.02162190661280;1.02415001679305;1.01683604385165;1.01364859330933;1.01524490745861;1.00510951921707;1.00782883549008;1.00831559707159;1.00691652300643;0.993590724909400;0.999143759885736;0.995405803315627;0.987275232171279;0.984634587099882;0.984104957422627;0.975072788441357;0.966640430197607;0.966931558382931;0.962217977390116;0.958014909111946;0.951406745064710;0.950075333694236;0.940153052289779;0.935112157770728;0.920694204273519;0.914837140610581;0.909129850179103;0.902498743163064;0.892081134874183;0.885453962668892;0.882524496818809;0.874741096274797;0.866086021453170;0.860074671689151;0.859073363608117;0.852097698029074;0.847260161793879;0.844762354363115;0.840752194293657;0.841278323182596;0.838626293361365;0.837167644748160;0.835622824629684;0.834232955949894;0.835290460770036;0.836151582610034;0.834308841354632;0.831017961399920;0.831159094596303;0.840852273793136;0.828879037814150;0.827789405327814;0.826711673765967;0.825812917596868;0.825779018600120;0.825754022581351;0.824602549790438;0.830276721682554;0.831886730159257;0.833979132313491;0.831353319348138;0.837543675535866;0.845037022370162;0.833385430697261;0.834892241670232;0.837620895425742;0.836042996916853;0.840521202207542;0.844468559871018;0.841455141782008;0.849388481303439;0.850622289734334;0.850386729135436;0.843567097472535;0.852468373595347;0.849191450478776;0.838005943943871;0.834259228667824;0.835777772932747;0.829062585097585;0.830304486272336;0.826614607667764;0.821726123220441;0.827446197948785;0.818774576305656;0.813841962200708;0.814350345128626;0.814676325016315;0.800363999175091;0.792696312704880;0.790458896977610;0.786088699176454;0.777808638285234;0.772517743831661;0.766121383825675;0.764801133577396;0.760173542222825;0.751232520064928;0.743964868601625;0.747509122408722;0.741793625738555;0.728654818298967;0.721174015085189;0.719366558872522;0.708674746916415;0.703461178327447;0.696794692007358;0.693802148298120;0.692913205165845;0.684734999281303;0.678195621673076;0.680385382992177;0.680445266034864;0.665713362395829;0.659892417086213;0.655190685410319;0.647243554588256;0.636016160378908;0.628115130362794;0.621362160786917;0.615394551742944;0.603783878254851;0.593570832212804;0.587919011404549;0.582671103334616;0.567135391690100;0.555686328071079;0.545443873294880;0.537757809627260;0.526262988957449;0.519039681801609;0.511207378146381;0.508088176653915;0.500805856019759;0.496362820525798;0.495267488335305;0.494477333303597;0.491883536729494;0.485149495206391;0.481480863474809;0.479628891735794;0.473405753160231;0.469022195904597;0.464621423755031;0.461782522465061;0.456359320533977;0.447491745858429;0.443548848724427;0.439252555229955;0.431561851184837;0.420014092538101;0.413661188217769;0.405772323534694;0.396131175936793;0.388285770232021;0.381275306888772;0.374779340209878;0.370288165599709;0.362819065658142;0.358884774277526;0.355621801562660;0.351603182720092;0.341831164929720;0.337135150211723;0.332640691804655;0.327124766296334;0.320583808714268;0.315243521135874;0.310146081390103;0.305885960625702;0.300586558243982;0.296631875943281;0.292846829849153;0.289487884935665;0.285206111830883;0.278266481953529;0.275833819231482;0.271913033034742;0.268650916712394;0.263673522534038;0.260065967609123;0.257993884009627;0.256144230101016;0.254612272351063;0.254325410138596;0.254574681738211;0.255687633113886;0.253009748877895;0.250798745097299;0.251634249821163;0.250432845545861;0.250636037101861;0.247865867210743;0.246462006730054;0.244206680298189;0.243152740091039;0.241890569014477;0.240797567382549;0.241686603599714;0.240869615319595;0.237706974638597;0.236613354397080;0.236265588276879;0.235557372846383;0.234694663266912;0.234656114088869;0.233382160491217;0.233168074086888;0.233055093290328;0.233127725065852;0.233070400413987;0.233936152092207;0.234809927875600;0.234726666405955;0.234881840537776;0.236184956623815;0.237509226671521;0.239766658238342;0.241579957775088;0.244787230798713;0.245670596370341;0.248590821543040;0.251178122576686;0.254968127275625;0.257641580482987;0.261940633228485;0.264407156950893;0.268764226008430;0.271933267664272;0.275170380090247;0.278635915219388;0.282593418703464;0.285455334795716;0.288330169488717;0.291035818815707;0.293800198504242;0.295836169618992;0.297518022882140;0.299272726828758;0.299696727802209;0.300432462188635;0.300302596745711;0.300000281773828;0.299473567760710;0.298695380186649;0.298300812929272;0.297427474697275;0.296642470411527;0.296703387329011;0.296032405301234;0.295833663692197;0.295955542501357;0.296709938042698;0.296152491816447;0.295849629885297;0.295886176737110;0.295856863371819;0.296553907702291;0.296212302578752;0.296664897843695;0.297376066909345;0.298614848499560;0.301448701407926;0.302667764401154;0.304076905182909;0.305761072633801;0.307216614162660;0.308836643191008;0.311014455541248;0.312287848689086;0.314290734557989;0.315570942745976;0.317551878730983;0.319041402185936;0.320239802219514;0.321028658408611;0.322406770951573;0.322709416391723;0.324927473919460;0.325390572896080;0.326427178395243;0.326802583714012;0.327489608932375;0.328758128561245;0.330093175751496;0.329837866803041;0.331611411124854;0.330863761796953;0.332520911192148;0.332865332089689;0.333625908303544;0.335111677882580;0.335940143149373;0.337226203017418;0.337559621055800;0.338902957055816;0.341143129002581;0.342186539896339;0.343762953895532;0.346214140919065;0.349328398565608;0.351569671498599;0.354237412787232;0.357398786515807;0.359474826673831;0.362393019436943;0.365434908213422;0.368245465394060;0.371653600992234;0.374531085104421;0.377775893739592;0.380623382012041;0.382554144176365;0.385443157509963;0.388411491291015;0.390362874035430;0.393273543646637;0.394609307717699;0.397429816199019;0.399237287828873;0.401629597065170;0.404174520465005;0.406448332782718;0.408640579526918;0.410507481757296;0.412255548338763;0.414998696663134;0.416316784098264;0.418094833015266;0.418829515171696;0.418575976223950;0.418421985560624;0.418714403394781;0.417254083717941;0.415629731976909;0.413193526188879;0.411076114801050;0.409095106619317;0.405102377432082;0.402367248590927;0.397149329601359;0.392305993817855;0.387822927948096;0.381671413443055;0.376169077681513;0.371100345351297;0.365397051037180;0.359182088491189;0.354605288217331;0.349086507085333;0.345223577889865;0.339256133267063;0.335066988575959;0.331151677791792;0.328176973580440;0.324237756742597;0.321950983017603;0.318419901772424;0.315534833133604;0.313431642419701;0.311358337468015;0.309318991193222;0.306730655351562;0.304986661422219;0.304904982773179;0.302960670678936;0.301905429226538;0.302209632001997;0.301149153094830;0.301457422561886;0.302451763213987;0.303610550992838;0.304990758287403;0.305638767940895;0.306486218565231;0.308175599462629;0.308235340322818;0.309463006905764;0.311273914916953;0.310263802750666;0.310825314243793;0.311686599600261;0.313682240156088;0.313093080690600;0.313877079467191;0.314087560282894;0.313886285095847;0.314161481080223;0.312965432682049;0.312179072475267;0.311083788944244;0.309852457582602;0.308540649989153;0.306984728222284;0.304868154547348;0.303645773190640;0.301075218876769;0.299236209594000;0.296888304291492;0.294928061317371;0.293048003478671;0.291446361027935;0.290086349967426;0.289158731297702;0.287524854170755;0.286692949069296;0.286237086527920;0.286750334767971;0.286662793797199;0.286918725017199;0.286918577587604;0.286763068490245;0.286940528726712;0.286462919310764;0.285103988332566;0.284312336654412;0.283036496544269;0.281775255467311;0.280552269916646;0.278729939632582;0.277585531232844;0.275109052669544;0.273608981472383;0.271273512933655;0.268890518470282;0.267525933811984;0.264855503670281;0.262947057827940;0.261280341462465;0.259367356287199;0.258243899198923;0.256272177465399;0.254865178751869;0.253386547796484;0.252260679720724;0.250449203616033;0.248233138588504;0.246567961639838;0.243885326417295;0.240628091251541;0.237940345043799;0.233918278200657;0.230798122512189;0.226341273305111;0.223028030022887;0.218452354194909;0.213980389434444;0.210031581433621;0.206167116735769;0.202242499117348;0.198597346312315;0.195765157813122;0.192697375333085;0.190151802838596;0.188478985245795;0.187283248172458;0.186599567132030;0.185586987786701;0.185216629620717;0.185402755148110;0.184566514939469;0.184351574393378;0.184160922729138;0.184152527462492;0.184412605792999;0.184815765946445;0.185508948632004;0.185256508598870;0.185532355992960;0.185752560901139;0.185168295074504;0.184473479754891;0.184320525296634;0.182610254666872;0.181172824407809;0.179499724859138;0.177236162263519;0.174514345729026;0.171748883302625;0.168841821364509;0.165772396887753;0.162368750365338;0.158678096030530;0.155810409070762;0.151421388702189;0.148104057530419;0.145218567406601;0.142073340441204;0.138665886212951;0.135260285632744;0.132815623361314;0.129473457549581;0.126275977464036;0.123695156347547;0.121691233788405;0.119666411279918;0.118655505006189;0.117300190814109;0.116561529401259;0.115973606309261;0.115645214318689;0.115890107897052;0.116798632674722;0.116736280396727;0.117737346740689;0.118351922285630;0.118888850929457;0.118526019069951;0.118675910217528;0.119219981306417;0.121431419320155;0.121662557505807;0.121334609431604;0.121455632728883;0.121574285200011;0.123447120477283;0.125665607381023;0.127437753822085;0.128808807697558;0.130586705438887;0.132317065278283;0.134271997290197;0.139797660194452;0.144396652100704;0.146786847645594;0.148899339226762;0.152587219122279;0.157383496430347;0.163475685409555;0.169907241363248;0.177536083972617;0.185794743313655;0.190951244492823;0.194705269695767;0.204955101914593;0.214717886130885;0.224072800269005;0.231713415573542;0.240349620210584;0.250575962144228;0.260754895451333;0.272192971372919;0.286257312583522;0.298893982779998;0.307768809188017;0.316421202176019;0.328173846923070;0.340044644663931;0.350481124915864;0.358455300638690;0.366242170706813;0.375811031101735;0.385173732582373;0.393173498422283;0.403421917355961;0.412425650453789;0.421288814186819;0.426088755812800;0.433154078742555;0.442649714336101;0.449829565878731;0.453510267305069;0.458888521250618;0.464717522528446;0.471601986013469;0.477235206294350;0.484338455493671;0.491765780716154;0.498580283912158;0.501702704585523;0.504453733291728;0.511698621520521;0.514837084858053;0.515888011306123;0.517357374929253;0.521387588563267;0.523443649534129;0.523849238164646;0.525540651190301;0.527362695042650;0.528941722097693;0.527541250873667;0.528066045483375;0.533002378291137;0.535278831001445;0.530824683180501;0.527662347222920;0.530453899692064;0.527506140869218;0.525972597006625;0.524528051481851;0.524783385664986;0.524528168768861;0.523933644747151;0.518083715208837;0.522206766815100;0.520829003814706;0.515470096258729;0.509876701745699;0.508503631646011;0.508792282809684;0.505473367265917;0.503676397379049;0.504878855388725;0.506042279650491;0.504870006762929;0.501564390285927;0.504477591418672;0.505879600275890;0.503936906571057;0.499510630745600;0.500756519614286;0.502244714017360;0.500064518099307;0.500191834231781;0.501163225744750;0.504930389456421;0.506321339824125;0.505013214195725;0.504885837409482;0.512390438469825;0.509465646382669;0.507169969231679;0.507226750616832;0.508741039126981;0.507463282309843;0.507232667365353;0.507456947794625;0.509749574953673;0.511104793123905;0.510142549284683;0.507334017002199;0.512583098116081;0.514506833048263;0.508890728431537;0.505748060178777;0.505053684242700;0.504299811091192;0.502258267791134;0.500568065090989;0.498930318942429;0.500151408447877;0.497750384215459;0.494711846138851;0.492822328637318;0.492396673472847;0.490096837526873;0.484994452482085;0.484359035220574;0.482661250550523;0.478618150850116;0.475656171703620;0.472735382902126;0.470433190277084;0.468779324728050;0.466080283999860;0.462681612060519;0.464394418581891;0.463611982849978;0.456289600120036;0.454409024395596;0.453966885137613;0.451532075942778;0.450462977951786;0.448976611897835;0.448778424605012;0.449109039668317;0.446357412363811;0.444876023719976;0.444538213644397;0.446618548957993;0.445454485573034;0.443460067385210;0.443169011102013;0.442119132365991;0.441623134052339;0.440208709566031;0.439915934596212;0.439405732042357;0.439589415621344;0.436989389121280;0.436090549315969;0.437941135732359;0.437550199684815;0.432256671303334;0.430973935312718;0.430687942163899;0.428684909450894;0.428208206799808;0.426589035302294;0.426519178589564;0.427681500595225;0.425760331648655;0.425347734234022;0.425879815926041;0.428800512635049;0.425261196464719;0.425964978586533;0.427734791211938;0.426212489951577;0.426224885023263;0.425910575174655;0.425682525214562;0.425290410636636;0.425464331896285;0.423573895309284;0.423324896837107;0.423200998757299;0.423089761689001;0.422303334096441;0.421823644670173;0.420684543267463;0.419630533876892;0.420209789544567;0.417578462505338;0.416566037443777;0.415573300527055;0.414634971223311;0.412447097069294;0.412272501261237;0.409388490312968;0.407417027705672;0.406718780719034;0.403363048938782;0.402270760528825;0.399587715575201;0.396820253777040;0.395019806017153;0.393696876008396;0.391235137870721;0.389768961778817;0.388288491595268;0.387519483567673;0.385127671584762;0.384470538579625;0.382392565618678;0.380740795655672;0.379437670863587;0.379812378497717;0.378714840285452;0.377190815063423;0.376232391788424;0.375344627378775;0.374588889439144;0.374163521044018;0.374423987695056;0.376026014634332;0.374192086684225;0.373787234708616;0.372363286896218;0.372127733022696;0.372752638830045;0.372009719244543;0.371436339963512;0.371281459611111;0.371340093459975;0.371120382788425;0.371106450371840;0.371994706380493;0.374091588328055;0.371230996113345;0.372164803569148;0.371485128114119;0.371847663869663;0.372878805501042;0.372471831682531;0.372657726918545;0.372879335281934;0.372996180853906;0.373046159429595;0.373712087962241;0.373919532060165;0.374522556191576;0.372267315485420;0.371437309790330;0.370171205616024;0.369656072324477;0.368059390229025;0.366419997692414;0.365133974291409;0.364500189762330;0.361882108398267;0.359649112752868;0.357629486622762;0.356114680401045;0.354821425888694;0.350985548698107;0.349035797365603;0.347316196424063;0.345288335892152;0.342950504642542;0.340462765717681;0.338447431507898;0.337249867356804;0.335071463452407;0.332253443067836;0.330216496849424;0.329588489384538;0.327339630451414;0.326002881426059;0.323579161605038;0.322767052118202;0.323316318121400;0.321681809673550;0.320932203403946;0.320629274680028;0.321392650002390;0.323609320763043;0.323635529437359;0.324048070969693;0.326439433701297;0.326586869711206;0.328316450038701;0.328253397585242;0.330616017616464;0.331211111475592;0.329897964661004;0.329762777964015;0.329065481658439;0.329743510133866;0.329003693575800;0.327208892113508;0.325303903811070;0.324961443754275;0.321971107866426;0.320812546569044;0.317903214786439;0.315458786680088;0.313048578017637;0.308760067557434;0.306471862857534;0.302546099356086;0.300156501657100;0.298842803644016;0.294522679644159;0.291854231675207;0.290192997985187;0.288561591289829;0.285989135957314;0.283621695642580;0.281098509217829;0.279335989509593;0.276250008282984;0.274389997681144;0.271100129803372;0.269659414316714;0.267341019668418;0.263500878315298;0.260177466607492;0.257308724212746;0.254448509041083;0.252809409176481;0.247848603503191;0.245588714255716;0.243423347171898;0.238791004822111;0.236901221936958;0.233851379221974;0.232735966706402;0.231749653923227;0.229424007119521;0.226886871217054;0.224709355920990;0.222568778210892;0.221883712072326;0.220299527506152;0.218842483655369;0.218838918416651;0.215262978594939;0.214070918823867;0.212123060974398;0.211607825319814;0.210846316007383;0.209329950730381;0.207700540306907;0.205858956357119;0.203948340865700;0.203560218183205;0.200716209245503;0.200155892954386;0.199806177052443;0.196487871223403;0.193602011620511;0.192410281590362;0.191297234490850;0.190625087388885;0.188986279211821;0.187102212369175;0.185279441832814;0.182881274898919;0.181253317464429;0.180243011485250;0.180204608689975;0.178584911663284;0.176464385610879;0.173039021713198;0.171354480638470;0.170218011569847;0.170302314013511;0.169579685701574;0.168513032706228;0.167964520215512;0.166674063632295;0.164314631468687;0.164036663486685;0.164234021812549;0.163941606350805;0.162560509399379;0.161566322291284;0.157753425673986;0.156658076291551;0.155790671203391;0.155257140990590;0.153668877871652;0.152127408059206;0.149855987391921;0.147510331623419;0.144539704592603;0.143734613113245;0.142179687557989;0.140897289912732;0.137961231663840;0.134691062407223;0.131102223056356;0.128608896024313;0.127814078764288;0.126063512080965;0.123485319254940;0.120930604177227;0.118728812555056;0.114989817306731;0.113015609455230;0.112396439657452;0.111402332137571;0.109483977280987;0.107274100376364;0.103999764279008;0.101667181976589;0.0999004968739335;0.100318053986666;0.0992970439572440;0.0978661447258876;0.0971060418318211;0.0949243262349684;0.0935750627269747;0.0923323333460429;0.0929897661092620;0.0930640036268333;0.0928271036010966;0.0917080233347269;0.0904597352542109;0.0894077053823499;0.0885865470940109;0.0893188197652961;0.0892380038042106;0.0889106180807948;0.0886850371695915;0.0875051778661880;0.0862524611535072;0.0850276272272303;0.0851065019612646;0.0850032234283265;0.0842459606730177;0.0835941124217936;0.0819513529273812;0.0802652924732623;0.0791338076074176;0.0784462891587626;0.0779820771432049;0.0771872862529263;0.0766440871434847;0.0758416076136483;0.0748933573166691;0.0734868006484069;0.0732512657756067;0.0732826082813604;0.0735218182438293;0.0730324966361879;0.0733361486126974;0.0727457155007166;0.0727374951939239;0.0724964196078766;0.0732376035730637;0.0735224363520086;0.0744513630367097;0.0743764848454021;0.0744020926872417;0.0739766948537425;0.0737393294177614;0.0742999046270058;0.0748176272179860;0.0752924643067960;0.0749373864688676;0.0750038358604844;0.0743778301074216;0.0737172368020992;0.0736434228515613;0.0739909775228001;0.0737879784131041;0.0732621888898438;0.0731664195538073;0.0726639500589970;0.0718863225057301;0.0715609171079815;0.0719135176947246;0.0715931781617914;0.0720794094764045;0.0722003469857875;0.0719187279922595;0.0718155315299121;0.0715304687115674;0.0718384781362947;0.0724451094822014;0.0728769311654437;0.0730799125271639;0.0733118165203026;0.0731135327694211;0.0723705102716824;0.0719696220372512;0.0722526431994083;0.0722197799997172;0.0723404933869115;0.0713188888478184;0.0702924237080178;0.0694350137631790;0.0680939763499904;0.0674421998954416;0.0670334232444426;0.0662783653874564;0.0652474269417472;0.0640784755965942;0.0624804467990538;0.0611557779213378;0.0603023261815350;0.0598493176496678;0.0593575659889852;0.0585493162888329;0.0579332191081848;0.0572088220870553;0.0561315815047373;0.0555544332240677;0.0552201057265342;0.0554082798302281;0.0552091977738627;0.0546335631926620;0.0543771426955488;0.0532593499782001;0.0524841817830477;0.0524834256533287;0.0524469141978695;0.0523260482573014;0.0518823814324024;0.0511820448308242;0.0504013948535476;0.0496302850963795;0.0496091838048605;0.0492082773928472;0.0490560776999251;0.0484863461117782;0.0476218488536909;0.0471385012924565;0.0462989353834919;0.0461899560986287;0.0461731548711942;0.0465578015790898;0.0462076896288051;0.0461663635598236;0.0457493381700353;0.0453692797510372;0.0454253279288537;0.0459481405848963;0.0461675698793902;0.0462347558435799;0.0461891227444020;0.0457768509461838;0.0454698072105457;0.0452559152614884;0.0454399577976120;0.0455290653593122;0.0455104389064462;0.0454061147693471;0.0448442216467333;0.0443426367182631;0.0437808545254159;0.0436494652105314;0.0435429006754773;0.0433316077384210;0.0427381506868334;0.0424300615109590;0.0414699422757591;0.0406478612294063;0.0400860061834691;0.0399171713903651;0.0394157337027743;0.0391887551728332;0.0385395003877302;0.0379569123079379;0.0373431350481129;0.0369775918332735;0.0366900701830476;0.0365954436669646;0.0362391729154584;0.0358407419618469;0.0353946434921113;0.0345751030581764;0.0341040478309960;0.0338700432793830;0.0335700079857509;0.0334336546854223;0.0330585790080335;0.0326638113972597;0.0321368771732301;0.0317339681560458;0.0315636335508223;0.0315348001652861;0.0315032489763850;0.0310594549082058;0.0308964887019082;0.0304858692687752;0.0300101054715409;0.0297716282264413;0.0297005392286873;0.0297148896934906;0.0293058061921866;0.0291246255479333;0.0285765938103786;0.0280747307159743;0.0277307260113529;0.0276193352550862;0.0273522338718399;0.0271729969222046;0.0266194257705352;0.0261316587862731;0.0256009342765964;0.0251096783428362;0.0247975555722685]; +expected = [1;502;905;1195;1830]; + +actual = CutWord(curve, maxStep, minStep, iterNum, pointNum); + +assert(isequal(actual, expected)) + +%% Test 2: Andreevna +curve = [0.566402188309269;0.595830880270903;0.617420517592618;0.645184006724869;0.667581956427826;0.685572530350804;0.703191011633790;0.719566516760728;0.729792279549804;0.740589072888365;0.746287577426338;0.748088799796258;0.748246950754535;0.748593243890744;0.749535519448098;0.751236767494309;0.753991431069448;0.756746779365562;0.762571846161707;0.771293191112753;0.783061516416553;0.798012206980072;0.818286225184981;0.832514632210702;0.856245013519164;0.878570047738793;0.896925929205119;0.918831558982933;0.937648103518130;0.954028305745019;0.967144603045927;0.978984602376072;0.985328847397293;0.990320677124192;0.992993908687438;0.987445940324316;0.984920658312754;0.976605527416599;0.967794989921493;0.956274816556835;0.948243978465907;0.944054432543517;0.938972655746552;0.939818222454956;0.945193148842773;0.955746512411816;0.964064844510388;0.977909145420692;0.996238467680158;1.01277415592024;1.02813528393362;1.04144352419476;1.05739792512704;1.07259407919388;1.08464842031599;1.09298790153131;1.09844419562368;1.10273752559597;1.10541648412940;1.09936266357927;1.09568576544501;1.08460275468998;1.07658777158379;1.06057491739077;1.04674302771699;1.03687780167036;1.01733584285902;1.01014231174519;0.999762905940048;0.989245380257356;0.985035196288986;0.979693928228472;0.974433764913704;0.980342110840341;0.973840269759858;0.979443774889401;0.981690066692013;0.981857609631873;0.982402604398725;0.983753555636190;0.979333287867837;0.975404664732218;0.972804510589408;0.962209908071443;0.951546473021267;0.937449889797415;0.926454775211870;0.903224498975584;0.886564007622847;0.873732809567100;0.853566764152398;0.842075635730966;0.828300498983773;0.813563697601376;0.801242058873120;0.790490149473352;0.782714301100996;0.779321903277045;0.773068924958872;0.777763156674998;0.775389815835913;0.775616255672789;0.777113668046103;0.777992962271821;0.778942859810973;0.779860369377981;0.780299643198500;0.776234807760816;0.774421780525458;0.771223498398619;0.766783008748669;0.766797197804188;0.767532001551340;0.778175765890311;0.785644823668358;0.793250811135424;0.808521797211605;0.817161975894022;0.835094269278795;0.847602091121887;0.865714594969082;0.879910947978873;0.890383530018353;0.903036075779886;0.911766908257025;0.919748613573078;0.924896820435807;0.926993993293265;0.926374720036744;0.921902934852137;0.917186583118385;0.907678015742008;0.896158246751661;0.885660361766234;0.874918640811984;0.867428495225476;0.859250129159887;0.853431122104268;0.846257025838840;0.835565887658554;0.832716380256285;0.834683248211493;0.838440999843607;0.841259301952943;0.842939040702187;0.849409381133780;0.850809129735789;0.852770423138722;0.854040653515093;0.853487825505854;0.851636851679643;0.850451822270579;0.843448917053294;0.837121510862473;0.828753939481371;0.819854088568770;0.811155404000644;0.805428907494820;0.799018243960753;0.804328771521647;0.799615620606981;0.794238852711260;0.795015279133595;0.798052539937774;0.807003260867639;0.810461379381380;0.815760970933722;0.824470638493621;0.829926419054682;0.834335531745106;0.838379161233290;0.840851137408018;0.840381233945134;0.839904922332108;0.836159115731779;0.832030548240426;0.824583717805812;0.818197720378088;0.811901533501395;0.807410256516535;0.799109004777597;0.799804251257578;0.797282909338470;0.788641394467887;0.786217812097703;0.785844554442417;0.789846454346372;0.790077266320559;0.790426625014066;0.792193375851328;0.793550925478102;0.792876939153713;0.791714144456683;0.788116047338219;0.783497929560523;0.778462609708421;0.770325054706350;0.761768486956409;0.751147636225356;0.742100292858097;0.734802579917105;0.728000872241473;0.722467125666308;0.726833988821906;0.726264718014765;0.725817921880931;0.726119087959603;0.730019054834615;0.738714729860063;0.745109209590036;0.749125807220975;0.755954688345219;0.762618970829617;0.766173877604302;0.768768008288385;0.769105007488983;0.768806616103368;0.765313333916740;0.759576587885497;0.753333542122372;0.742699446595230;0.733301384687058;0.722633530881390;0.710694562121712;0.701070939722120;0.699357203368368;0.695817069172424;0.688017773699774;0.685844005201335;0.680770021097630;0.686558973366753;0.688657629141411;0.688935890581493;0.688835305758037;0.689279762945215;0.690108677447846;0.690116138454863;0.687645002888257;0.683373890344391;0.678516428335400;0.674977219385397;0.667306549733184;0.656258395853480;0.646642647303665;0.634435921295421;0.622851978565156;0.612760194772089;0.612137657306536;0.607338810410894;0.604420442503663;0.598937524557136;0.591448298893101;0.599607777792355;0.608081193191484;0.614568824591989;0.614480720138305;0.617297823311790;0.623980586245197;0.629520596965857;0.632050515950780;0.631353645568880;0.632033134918686;0.633605189733197;0.632127399523001;0.625256954011843;0.621971333827308;0.612667016917510;0.606082930607879;0.600327887669384;0.601629328884754;0.603113309153835;0.608460532566757;0.605163317695623;0.601688527946676;0.609191350088779;0.621267531781627;0.632147332437289;0.634351415928336;0.639389664072121;0.647983192635481;0.658255711767310;0.664151583264726;0.667450585607588;0.670666959286374;0.674590210475637;0.676077719951189;0.673416392397163;0.669248955722093;0.661950945256965;0.653315297796695;0.645171364903073;0.639149026136006;0.637489284730007;0.636606462636585;0.629747318792085;0.621059934904448;0.613117849783116;0.620125642322128;0.627835377133234;0.626791075955981;0.626308770413099;0.628646366284002;0.636412167659855;0.640972192801821;0.643570407177157;0.644263726829264;0.645931298626417;0.648189031443400;0.647090457617621;0.644048944401002;0.637196802495884;0.629983977069883;0.622956787370822;0.618472176049076;0.618843879908222;0.623156836612388;0.623472528194421;0.620283993866638;0.614553077752310;0.620048744903375;0.633151433488926;0.637790005377149;0.638851648408015;0.640983413831047;0.648742924775025;0.657522230834499;0.662430096576373;0.664072330412236;0.664881459216397;0.668944998125310;0.669993025005008;0.666620227583848;0.660802425030691;0.653894067016473;0.647199345140595;0.640764137829595;0.640043854579981;0.642989676205612;0.646122773307841;0.646677951903689;0.645368295653500;0.641575671767952;0.658355849361496;0.669159843633696;0.673724012184815;0.673122597183420;0.678512871153163;0.688872977919222;0.695943077794424;0.698857778277205;0.698388036310183;0.699628586351962;0.701796070573515;0.699906311436268;0.691600443127104;0.681770753208409;0.671708981984578;0.660947898459530;0.652090111380128;0.649205950678434;0.650128547245002;0.650649630605715;0.649917641382270;0.637991437665239;0.640608692135901;0.656319426896766;0.666925233314997;0.667744457020746;0.669719970533192;0.675733935534786;0.687105629307667;0.694428208961489;0.697367428775846;0.695224783785459;0.696149527027115;0.698227353663970;0.695358580514083;0.686174550356427;0.674496552556980;0.660825381272610;0.644416865094933;0.635664844727578;0.629526039098036;0.624931147206065;0.619550930199287;0.608321670693671;0.596764529996114;0.596316519207815;0.606134694082982;0.611839847606921;0.618234869108297;0.620147089562649;0.620399364790984;0.628629248244632;0.637823551606297;0.639925116535357;0.637566824194969;0.635332332520151;0.636922730772267;0.635921571188341;0.630286823998185;0.620012265731943;0.606363944445189;0.587067637138624;0.578563447770199;0.572767674442617;0.565897344184624;0.547939223559725;0.520682438864203;0.500836475179890;0.500376962902123;0.499975681336035;0.497197498503797;0.493671484407954;0.491267271014501;0.490446722807383;0.488516287715085;0.488203283285450;0.491014448944069;0.493941354395697;0.495314338670644;0.494399459968855;0.495969819175891;0.497375306346191;0.496265159800592;0.490706142015548;0.480136959668527;0.466761595741332;0.465429081904392;0.464596113637003;0.456975605137522;0.437903888003272;0.418816904043871;0.408563003449467;0.403728124661511;0.398684780106254;0.393897558817639;0.387448456152688;0.383954793115422;0.384086627279587;0.382005823015252;0.380547129281677;0.382811182529809;0.382125932759281;0.380378102753422;0.377372629810479;0.375612698276882;0.373741353645751;0.371540273252947;0.368824846532977;0.364980616415383;0.359378207887322;0.356581865065116;0.355627587709824;0.350576450489863;0.341166837537044;0.325741420330992;0.311286846151450;0.304384620057245;0.296384699985936;0.285321273660329;0.271068114826720;0.258799626332621;0.253032698649834;0.246305398982183;0.238320848998903;0.228411348085222;0.228943786513372;0.231274644322752;0.234699728228303;0.232540035212026;0.228768014345903;0.231002451596683;0.235265862803256;0.236373972805352;0.235236733819969;0.234023055054254;0.233936404289745;0.233567104625358;0.235661809380539;0.236413555630386;0.233511493547281;0.227406657094458;0.227039296297894;0.226348070867104;0.223046448878058;0.218146214959955;0.216719515989731;0.218704180410818;0.220206287680073;0.220885534668203;0.220692522703401;0.222037106008959;0.229987226211138;0.238115427323955;0.243603700508562;0.244302311408031;0.243851621262824;0.245678867766102;0.248990549630213;0.249715461514042;0.249109253616940;0.248993877384791;0.248576055206231;0.247511889836467;0.247918366215493;0.247511411145712;0.245421574952133;0.241268274707761;0.239144336286634;0.237749761687762;0.234911249410658;0.230587219151808;0.227449101361279;0.225614255318057;0.224108036118119;0.222002289319343;0.218784475649985;0.215110804149292;0.211626178567640;0.212317351793143;0.216303283149883;0.220007235120048;0.222954404388649;0.224052921893677;0.224481317949436;0.224556736660692;0.224279085695808;0.222777580923343;0.219270053024888;0.217373837194051;0.216942420187390;0.215819608665636;0.210641288348331;0.202051771040955;0.195558410812756;0.193567377446300;0.187666501555607;0.180952027001228;0.174502036069579;0.171762649082754;0.169062428902292;0.166924082593556;0.163143726129493;0.160759177319040;0.158290990026320;0.158896676425162;0.159205452875044;0.161050670185528;0.163652436005760;0.166632285708809;0.170364781410124;0.172689440739855;0.177579364098026;0.181155558393536;0.182135275322461;0.183840134943302;0.188383447221845;0.190814402069516;0.192181690425924;0.192386466067726;0.192639960106157;0.193501915231650;0.193541962783579;0.193930981586384;0.194659843261146;0.196964954553144;0.199985800447793;0.201264220810560;0.202299410069870;0.206934981265941;0.211135452183032;0.214501010426289;0.217768125251022;0.222919275968691;0.230439663468388;0.238626019147709;0.247669996137861;0.256859021548986;0.265940039384246;0.275820060860523;0.286188610530475;0.297205584854921;0.306790881975405;0.315833968816453;0.327622422401676;0.338485981612755;0.349281074550010;0.361091127846362;0.371695837109460;0.381237338132461;0.391069495152380;0.399397981490952;0.413854374334248;0.425388608918594;0.431834551618368;0.436380226242065;0.443322707831308;0.450782844640800;0.454222774787181;0.459389513202679;0.464502730260533;0.467165801024766;0.471048292753308;0.473903921849689;0.479058847226614;0.484855166370822;0.489072983718541;0.495904240660387;0.506603623026810;0.517766575834729;0.529808051322271;0.548403236638294;0.572300418495638;0.594608966126025;0.614393933500430;0.633366911450149;0.656213089834259;0.675616246074373;0.693035075137079;0.705626348454398;0.717381088368591;0.731566516555405;0.739512945191458;0.744913301673432;0.748857844996201;0.752037643537125;0.752755283506817;0.750955284323672;0.746672402620228;0.741066225097707;0.734898743175090;0.729772502091880;0.733332062949930;0.736978262654214;0.744129567319683;0.752463995652946;0.761330365866517;0.771149523197354;0.785439975027901;0.801609891825979;0.819614851458525;0.838374445017487;0.856407127077772;0.872004700478076;0.880728660191627;0.890596098347996;0.898098971710132;0.900829953125921;0.898817510379039;0.895937701754133;0.890379210666174;0.882527624538724;0.870812426221543;0.854574871821642;0.836596979343966;0.814685954795811;0.802581207849963;0.791241359514646;0.773627784265771;0.755553590456170;0.739261151495442;0.727904985403335;0.717196498671440;0.713180789616486;0.708945727184529;0.706405791421291;0.706975758440998;0.706357197598444;0.705970238837949;0.706553481725729;0.705370518196333;0.704890866061708;0.701420978037270;0.694270065534572;0.686355816392258;0.678651206079105;0.670044636597399;0.657805983801905;0.640618124276456;0.622987666314866;0.610280769100926;0.595568401570219;0.579826027088777;0.556392256141539;0.536776591284693;0.522362005242779;0.502656554675478;0.484568588371532;0.469433214862663;0.454845353214966;0.440088695755894;0.426216461996810;0.411610264206199;0.396843359685651;0.381394570114860;0.370307671902848;0.360545102858381;0.348623782882692;0.336449141561340;0.326361131697548;0.316957054481859;0.305534355737559;0.294552735892538;0.284608992114765;0.276637651853304;0.271342839624112;0.268717156483134;0.264192770425034;0.254916164980860;0.247887246387270;0.246818697432653;0.245174139368355;0.241639481575908;0.239374208670607;0.241073625426716;0.239269697182637;0.237533857885480;0.235802805101174;0.232133234266605;0.233626271478180;0.239133181262516;0.244183715167452;0.244450884673055;0.244820387213566;0.245504536886196;0.248598356675196;0.251470266269176;0.255512594778939;0.257470260443147;0.259202013702282;0.260926309250119;0.262515701309673;0.264198997530458;0.267149840666466;0.270264559726033;0.274430758792833;0.279666724296628;0.285244849891565;0.292115382604462;0.299548286334630;0.307693379529211;0.312251092880589;0.320459879632432;0.334402394697350;0.340550075686622;0.343284746711604;0.346529335968025;0.354030354912175;0.360139536588785;0.365875597647832;0.371331976327343;0.377937611065934;0.383782015168917;0.389733442830066;0.395622223244933;0.400766666083826;0.410475799313010;0.421847505390343;0.434882982363629;0.449736058491145;0.466260117565505;0.485589865095065;0.507761981225664;0.530033566062238;0.551834688365980;0.575382817859699;0.605823214298772;0.626588286694283;0.644124448565032;0.658603307458017;0.678015163026691;0.691098686603199;0.701702339374675;0.712601424568127;0.719926739102556;0.723813541938578;0.725161130003724;0.725307492171917;0.723914151687635;0.720702752463204;0.717418894694523;0.715227724459293;0.719741347388626;0.728587600348643;0.739313358996986;0.754362135905603;0.761866635810164;0.772138348490572;0.798620963302192;0.822544477996009;0.843293799381814;0.854285484613920;0.874288806547789;0.895280020592614;0.908156006200538;0.916740605429523;0.926195450468994;0.934717416071806;0.934715684132339;0.933268201571647;0.930637165950555;0.923529950070719;0.916940055708861;0.908189848343604;0.901678071585392;0.900900658429769;0.902271496069810;0.904056352185646;0.901140543070630;0.894186366839150;0.898329955140458;0.923450991330674;0.945108500761149;0.959291145266020;0.971882049515055;0.996963808593978;1.01163961673360;1.02353528904557;1.03304572131370;1.04364872310593;1.04743684594023;1.04736330238712;1.04706351987833;1.04139553496348;1.03390564621712;1.02197756658219;1.00832520911040;0.994448089543543;0.988237750791832;0.986643190608236;0.991049113481292;0.974476819145951;0.962762101945241;0.966639918088318;0.979620275212829;0.980770682812153;0.976702194394987;0.989029459734565;1.00004107233045;1.00330874489597;1.00599577207422;1.01447824685385;1.01903261720148;1.01651765761046;1.01390858810799;1.01063569597742;1.00728906119006;1.00399787837219;0.995065168888073;0.981643172755876;0.969768655143292;0.971992389993647;0.975629892334580;0.963485334821895;0.955450806900621;0.952186790064901;0.968440751634774;0.978091117982848;0.975056322450789;0.982236395761270;0.999308593485422;1.00647050301777;1.00923662449644;1.01824673169197;1.02228609703865;1.02191016662750;1.02345308746055;1.01852269410965;1.01638269483282;1.01545299656717;1.00953623483253;0.999077734478085;0.991953041943269;0.993594408923643;1.00266874779799;1.00560974444085;1.00741391606385;1.00627764930710;1.02346865251368;1.03910994346044;1.04682079568251;1.05370508776772;1.06963348629615;1.08037011080983;1.08825028952745;1.09880124506935;1.10001045808941;1.10374855947095;1.10273394796022;1.09858358294798;1.09481479626475;1.08886913553092;1.07968410624518;1.06859558199968;1.05816722639505;1.05406413568775;1.06075644292560;1.05541319120856;1.05422397067065;1.05238053744659;1.06667569594504;1.07563497906300;1.07854046598591;1.08672358739354;1.09744668274971;1.10589722912514;1.11370445281721;1.11979875099587;1.12339451455956;1.12464750580836;1.12237092832297;1.11842740778423;1.11247752201190;1.10428484705567;1.09532071307560;1.08610630222052;1.07770190477039;1.06979301835673;1.06817457631483;1.06071411142588;1.05404167147036;1.04706785928412;1.04865258824828;1.04895595922264;1.04819374404923;1.04906831539861;1.05191023655359;1.05471101263431;1.05696753553979;1.05804975263853;1.05649072153408;1.05421869964477;1.05062203520245;1.04180321702042;1.03287884766414;1.02260071760795;1.01296445352919;1.00479241348562;0.993176495703341;0.983031947557638;0.977781572719212;0.975110176618603;0.968723077383357;0.968663561937011;0.969128544723488;0.971276738426857;0.978012723570314;0.984172167221023;0.987415925125090;0.994599689282341;0.997778634936130;0.999408137514119;1.00287246176898;1.00393688759661;0.999676368083861;0.998728881784167;0.992827579871685;0.985799225316393;0.980781566783249;0.974142123152201;0.974994224848313;0.963907339440030;0.956978295447625;0.954121081691431;0.955536528463148;0.957585010544554;0.951124896323827;0.956574915704988;0.958673963340490;0.953493130354513;0.957512007496203;0.958079953406099;0.954377263708381;0.956043481580154;0.954843341443716;0.948131358318482;0.949028442609129;0.944073600879405;0.938633996899785;0.935685371178240;0.935559324025385;0.937230960815899;0.943695792762162;0.948663702149149;0.949406847721005;0.962914672993909;0.972183681272912;0.976387526533249;0.989113356145706;0.997991861397129;1.00146641414642;1.01061193025897;1.01750568164584;1.01604097725520;1.01991725671857;1.01600471979398;1.01416157395075;1.01040793307916;1.00377861095565;0.996337377098819;0.989869844191381;0.983936114088450;0.976863795352713;0.977233404927164;0.972607924938463;0.962344347247822;0.965075954033138;0.962353785384992;0.956440057016638;0.958255564708255;0.954130798297994;0.949279478978657;0.948311769979735;0.942329132840826;0.936331993361375;0.931965907545342;0.921882155994479;0.917663293971202;0.908878148052775;0.898556204537806;0.891128455435636;0.885187588782230;0.879903325926719;0.876748133823784;0.875466257946415;0.872515976971254;0.868340355002709;0.874978458629222;0.872970757656124;0.870463495406318;0.873041358867905;0.869041697231361;0.873693897238993;0.871826972131808;0.866873233410480;0.865415214687000;0.859097342034249;0.851351863433517;0.846384086081931;0.833945543994880;0.822614226904443;0.812714430286809;0.804652817691554;0.796173664629677;0.792013803453314;0.786093358677528;0.773099136682179;0.772358282193764;0.770405921282397;0.761331487713044;0.762884836243607;0.761805504687440;0.760423025927238;0.761072836128722;0.758143341850623;0.752012975830601;0.749263991746528;0.741199334217342;0.736388852282646;0.729791063877164;0.721308991554082;0.713411976153431;0.707974800367674;0.700908530169041;0.701747441404258;0.706329734489942;0.703484584396830;0.699195712059703;0.709579077334030;0.706644933938914;0.709671555715522;0.715973810757909;0.718741360216445;0.722283859190605;0.722974518975113;0.722406384228900;0.720149168638398;0.717947902529754;0.714087877251751;0.709516824119236;0.704115441263827;0.697920908361170;0.694014151499332;0.692872543301314;0.691255323001925;0.694514034039325;0.701684135981799;0.693288844975281;0.703143459612769;0.707987242756680;0.712189781705340;0.723821750299792;0.726431253480546;0.730617924981708;0.736361426699530;0.736488922625342;0.734124452894669;0.731412864401932;0.727132703644114;0.723298680765656;0.717346744127719;0.708534229949901;0.701844772019027;0.697735904976433;0.691838348801149;0.688741225346079;0.691126294981737;0.680700013639855;0.683381601011616;0.689248179393966;0.685654595850272;0.692031882050092;0.693580070809009;0.695007074729938;0.698546536637690;0.696896604387339;0.694158941822300;0.689594861321829;0.685342714188724;0.677476349421530;0.670234997944556;0.661450618499938;0.650324593816770;0.643684118322577;0.631218904950195;0.625246105633509;0.621102779265945;0.612956263525622;0.604082722333360;0.607372283224292;0.601276414101152;0.599635995225409;0.604254924126407;0.598793119412594;0.597880296570488;0.596785513985042;0.591998646392471;0.585190993006336;0.580107875400407;0.571735148128305;0.565311411625337;0.557126986742687;0.547156777864955;0.541551669690011;0.532482056159961;0.531575149241706;0.530332527216819;0.533827345219726;0.522531466440574;0.526558098492737;0.529144176873586;0.529796512781905;0.536758725666470;0.537646343541730;0.538820301103140;0.543016925199882;0.539357454994799;0.537886663979879;0.534301357757905;0.529713164218136;0.524606431745023;0.519077395962329;0.511769771368341;0.504785102479927;0.499636279423740;0.493759266348339;0.487645933667070;0.492083697495771;0.475631173874707;0.472897646449686;0.475587195489361;0.472254910752572;0.474978611986724;0.477408810233188;0.475908035682084;0.478593101498606;0.476102336916898;0.475040970049472;0.470619065991931;0.467660630295990;0.461233150780280;0.457722104044152;0.449157492597849;0.442208600779003;0.437224244564075;0.429201687436708;0.424382208703792;0.425695024990682;0.414880473492993;0.409152704491223;0.408338185784944;0.404203663997320;0.400706099548649;0.401949396666325;0.398736873069050;0.397426990701848;0.397754670664063;0.394951158569788;0.391713215004962;0.388290654941855;0.384536230578018;0.381055989651576;0.373929200631164;0.367884259352050;0.361935606304595;0.354502454927964;0.350133660565103;0.345406236250709;0.341957952358949;0.332539996857016;0.327920149714058;0.325534633785473;0.321157026318738;0.319518472226379;0.316302256344155;0.314642329201578;0.314559510488930;0.311932057281808;0.309919211428904;0.306963613623491;0.304459444360186;0.303579527468609;0.300111983098336;0.296916782660185;0.295417998057120;0.290947078210252;0.289619966315124;0.288704999570989;0.292347444749457;0.284429776291716;0.283947087286543;0.288202276902550;0.287327589304734;0.289913936345486;0.290434291335535;0.291900058556899;0.294413548444648;0.296504285117013;0.299382159378820;0.300845321782673;0.305416385498193;0.308153097360012;0.313213261241276;0.316726437051275;0.319735416051258;0.325109187031602;0.331115252719100;0.338026324235678;0.344536565976124;0.346678607658097;0.351410687805806;0.357963681494938;0.365377925875466;0.371227969180961;0.373881688785023;0.377319539348058;0.379607834264339;0.382257080302690;0.382776784688472;0.383813392024293;0.382884429259671;0.379467183508417;0.378107638090236;0.371110452913478;0.367582780139304;0.365364071559950;0.363532504619254;0.362491788161771;0.359603152379780;0.359478169592260;0.356265769696637;0.356404184580476;0.359502462503098;0.360673705250767;0.359887633997228;0.359604126636729;0.359542494585417;0.359256944216566;0.358377743443773;0.358970045977361;0.358434914939034;0.356281250802423;0.351082572435199;0.351509464396277;0.353853659879149;0.354796995103391;0.356692731706548;0.356108975767706;0.360635878615248;0.357968721273704;0.362433615181681;0.365734574021375;0.368128027213443;0.368867285632189;0.368263010272441;0.369728520205429;0.370424795762742;0.369586259365044;0.369099700621647;0.367138141595738;0.364196944672703;0.358225658464898;0.355989796878768;0.356224750407462;0.356377182924337;0.355301471811914;0.353142265544940;0.354740323283684;0.353566480090257;0.355331793065762;0.357538397558915;0.359950668278905;0.359766738380679;0.359056856328978;0.359958878443693;0.359646186587016;0.359875803567972;0.358740684051742;0.356925356334714;0.352250771859779;0.346975714324134;0.344347964879069;0.343070198930037;0.342482648527288;0.338611333715914;0.333821512719696;0.332116591370260;0.327930102813642;0.328175388447234;0.329580836349865;0.329943462158666;0.329753145719993;0.327164957033901;0.327706184452281;0.327829392240030;0.328607657017397;0.328262938459978;0.326905725804912;0.322933420518217;0.318692704478181;0.321642619696657;0.322999752604400;0.322232734260442;0.322358618543523;0.322857906319521;0.324847237362976;0.322805723342585;0.326835296023014;0.331137043293796;0.333036226785562;0.335188288276495;0.335273765397500;0.337992720268908;0.340816886171642;0.342513235929695;0.342515642204114;0.340365532926595;0.338141653253361;0.335699448270763;0.338917029287966;0.339875127547666;0.340357149967650;0.339587802417580;0.339368414045253;0.339511762862988;0.338982281653448;0.341228431123714;0.344467164904938;0.346429658203670;0.346941188405968;0.346143379846419;0.346028280001371;0.345164260885470;0.344222860693991;0.342236946380243;0.338658248152149;0.333782307775606;0.331003765840890;0.331293637310435;0.329326723135620;0.326894875829918;0.325402199620851;0.325989145352133;0.324650942667332;0.322648740986068;0.324527263050745;0.326118455328527;0.327155734590991;0.324774553071882;0.322286664751720;0.320889284832581;0.319655358949770;0.318252968061515;0.315093737587729;0.311052723114414;0.305238798267920;0.301424730496183;0.301200303652588;0.298908001705670;0.296939305434291;0.295861144958992;0.294403224028673;0.290708233606945;0.289002725982284;0.291970609699693;0.293697588218086;0.292292370266358;0.289666883330290;0.287431982359166;0.286807882791695;0.285351859541038;0.284951156335682;0.282977393683577;0.279830400125692;0.274852146136184;0.270449179133877;0.271507333902278;0.271370099041875;0.271781154504574;0.272671691081894;0.268822257874643;0.266213518467199;0.267500961398604;0.270791637207642;0.271652961832377;0.269517692093587;0.267718417952617;0.266911636701244;0.266990065547136;0.267599845302011;0.267324204237114;0.266666400668644;0.264284058319847;0.259157101167233;0.256026985348758;0.257050465969249;0.257293184846132;0.259070785704031;0.259190644304458;0.256671588113368;0.253692327623478;0.256536592694593;0.259672112075682;0.259860915192493;0.257604184924013;0.256299503450574;0.255814927913961;0.255801914040519;0.256273907906772;0.256362418135873;0.255820178228090;0.252979226535085;0.247242022951442;0.244737866138802;0.245895041291836;0.247201376096879;0.248009465039253;0.248667465411340;0.246948484905766;0.244256484020601;0.246933830984178;0.249971032877976;0.250369088195822;0.248498112586758;0.247750958594009;0.247349459780182;0.247266029070834;0.247412236132864;0.246903402234545;0.245990322979979;0.243836914652415;0.238044649117514;0.233782343714293;0.235039473045073;0.236435260483183;0.236439468134526;0.236084322029271;0.233470541714079;0.230524209288985;0.231219206944986;0.234367908926926;0.235211334092917;0.233972495387268;0.233275310911761;0.232523435654764;0.232391205354056;0.232314820283557;0.232857215393617;0.232685240121011;0.230918228998432;0.226192166104615;0.220629550471744;0.220749529423008;0.221966896731773;0.223963878723607;0.225676624800449;0.224769180483217;0.221670694713821;0.220273256670135;0.223254181541585;0.224997588864679;0.224308064438441;0.223248670953701;0.222144840549745;0.221409689357383;0.221274135614611;0.221637892424311;0.220775492259672;0.219685174368453;0.215956021208712;0.210543330256808;0.208087305720478;0.209246616371308;0.210807268751178;0.211629540434761;0.211300050618603;0.207502298104885;0.205110618198716;0.207114869495669;0.209151501813668;0.209413656022223;0.208563177904540;0.207619363094718;0.206750687967062;0.206294338501794;0.206561270387704;0.206423933199384;0.205158989177028;0.202788749889253;0.198790201127353;0.194078114516371;0.194596010771026;0.195341949308345;0.194692023653513;0.194104587128419;0.191261272627088;0.188519594751382;0.187159224571174;0.189307769094580;0.190479774204165;0.189843466353153;0.189160548774197;0.188138864754386;0.187518748639175;0.187382819604438;0.187462223187430;0.187131128449397;0.186081607597143;0.183274634605976;0.179882697260683;0.178456389986826;0.179713489073173;0.180400372697402;0.181201768253717;0.179865219517937;0.178812778481801;0.177479331141080;0.177881846420616;0.181098081201052;0.182812504484541;0.183416991695563;0.183197920541756;0.182593416755393;0.182842573671305;0.183081229787572;0.182712790274569;0.182240461037597;0.180426651386158;0.177678407350546;0.174328872051520;0.174638108624306;0.175487492505622;0.174760592627474;0.173396878759857;0.171979322111268;0.170471643298878;0.169397788358467;0.170327499970834;0.172009928536103;0.173358792486656;0.174110713181076;0.174462920009566;0.175000949071168;0.175419497717589;0.175669756222387;0.175831878551959;0.175184312486392;0.174107729835829;0.172764048747126;0.172882096711195;0.174285930969418;0.176373494267542;0.176689932006804;0.176351067180870;0.175963630534195;0.174276662101745;0.172989229304394;0.175311038262830;0.177539006617409;0.179562614568833;0.180473049833565;0.181094333852814;0.181450235729150;0.181248801634054;0.181083647072561;0.180389014723757;0.179343133246157;0.177639824397065;0.175383919984930;0.174967013836499;0.175567628871724;0.175356362782425;0.174563331594049;0.174585499811693;0.173446727541668;0.171941066071596;0.170880617746437;0.172411738027260;0.174563519795420;0.175744582114283;0.176797024449674;0.176804997113398;0.177018509218317;0.176428833897906;0.175701052543220;0.175160069738848;0.174505502815384;0.172438527244566;0.171054535152689;0.170138037756741;0.170622915155384;0.169981037999720;0.169239738435245;0.167776195444624;0.165252298357386;0.162975716257799;0.161675886279014;0.162688600407338;0.163341964570224;0.163399950742230;0.162498807441306;0.161391345032507;0.160718169860237;0.159535669813491;0.158601578050901;0.157657485731610;0.156421054703243;0.154915585112009;0.154372873564696;0.154721754755037;0.154922208884729;0.155296839367760;0.154140571309047;0.153489064913712;0.152621500931924;0.151652983303361;0.152679957545866;0.154986638457059;0.157118747730273;0.158466269596730;0.158374815106021;0.158526420324666;0.157942120770132;0.156708788027229;0.155519171402218;0.153929223058308;0.151836274905793;0.150006097964616;0.148690449801567;0.147234863153835;0.144926721209154;0.143244752145608;0.141111381917018;0.138945273755384;0.135702004331120;0.132593921033139;0.131617696840340;0.132138197996772;0.133143854171706;0.133683648960182;0.133590865856824;0.133516474800666;0.132481272385824;0.132074416063409;0.130866327307884;0.130231519532713;0.129075433809891;0.128264050748093;0.127339980402417;0.126468968481879;0.125311371462669;0.123486790404261;0.121676147071744;0.119539759376413;0.116490778478659;0.113407464953972;0.111491822624382;0.110324908042447;0.109187767678464;0.107900371971828;0.106780308898296;0.106167972938444;0.104732554130508;0.103451705048361;0.102468831996237;0.101399005596537;0.100770048428011;0.0997690451249714;0.0992439334183839;0.0980217257102016;0.0976922049200991;0.0958214604291228;0.0948435562000051;0.0928043815866921;0.0912696636941251;0.0893068526675256;0.0886508948587888;0.0877017210985262;0.0878082171469802;0.0870803248571215;0.0864363363134398;0.0852874786287248;0.0850067617066019;0.0840421468904922;0.0834752448214467;0.0829983640161596;0.0825255669071033;0.0822158175084203;0.0815179075343514;0.0810036879875658;0.0807890093320675;0.0794635029190773;0.0783993961338161;0.0769009932398708;0.0757430230233102;0.0747462238558724;0.0739712356295934;0.0730844106355884;0.0718975901591003;0.0707253819677268;0.0686729859867236;0.0669476931627733;0.0656955598558901;0.0641994235702397;0.0631835241039948;0.0623984964970750;0.0617955145324336;0.0611608279741097;0.0602720664442510]; +expected = [1;252;546;720;1232;1750]; + +actual = CutWord(curve, maxStep, minStep, iterNum, pointNum); + +assert(isequal(actual, expected)) + +%% Test 3: Tolstaja +curve = [0.194363804341515;0.200946439331258;0.207625488185735;0.215264997852553;0.223426733501840;0.231077419822951;0.239287019230150;0.245801485415766;0.253846494662479;0.261846121070116;0.268572089998041;0.276401191771696;0.284278234081672;0.292844063697080;0.301650949952743;0.312082460851216;0.323619195533394;0.335835203339288;0.349997400263760;0.366296669672261;0.382644443068399;0.402726460803376;0.422814432442483;0.443821601509277;0.466111072578713;0.486492848694601;0.503694304616683;0.524403093622325;0.538453737667820;0.554582240622917;0.571974013583655;0.579129512971143;0.588643543945489;0.595727181680663;0.600363250288340;0.600735637799620;0.601227421344644;0.598554578416140;0.593731730164263;0.589206773775330;0.583532079765443;0.576064512388195;0.570135865113225;0.569862130977247;0.574640431028528;0.583277079870016;0.593161733999511;0.606551781762404;0.620316686953030;0.630368545614680;0.648729394023971;0.661059492722101;0.679722854760886;0.696465485405347;0.710206125999310;0.721973397353748;0.733681528929454;0.739959457292906;0.748120013864056;0.747695070442936;0.747819678087751;0.742024543453086;0.737834268818187;0.732458397111308;0.722975448328494;0.712713828492588;0.701682140202224;0.693409659986192;0.687401089079808;0.680876625603680;0.679686493377925;0.684375614871861;0.686419997600901;0.690290352780626;0.700445583518186;0.703796435472911;0.711693492890897;0.718142153478444;0.725788836521432;0.728698781082965;0.731707441941263;0.733819322340313;0.734096378222349;0.732232221901856;0.725476986893359;0.719981706409561;0.714019896621017;0.706676728921065;0.697297619232832;0.688566135283632;0.678762854895651;0.675716146413824;0.668354652801968;0.669888033839700;0.680321043290835;0.682477523043955;0.691986612910423;0.701051304887910;0.712222386592436;0.719528074549336;0.728748681511412;0.735748065554839;0.745706710897981;0.749288425755118;0.752600213539577;0.755990943352756;0.754257362262363;0.752808265171809;0.744450911725185;0.738042961818056;0.729131685838137;0.720411663805172;0.710641725763601;0.695521722779026;0.689564572328733;0.672683061388325;0.664601272691475;0.656774017494771;0.654554165191999;0.649188866185987;0.652088624259952;0.648721310222321;0.658353829604682;0.655820579173734;0.659020790651730;0.664833059303539;0.669663734261992;0.669543943723838;0.670945280898343;0.668368583208763;0.667834135600374;0.663413554419408;0.660035811138343;0.654341775190550;0.648415782853891;0.650695101219917;0.644613444123443;0.640206338460126;0.648159285862342;0.647528414426626;0.653170599678787;0.663534323182074;0.668443328633617;0.680817014361824;0.689000607047780;0.705694763493349;0.715923545158011;0.723975970585889;0.734823533261877;0.743066287994325;0.745114355591059;0.749204365275904;0.747158064442103;0.747450980407967;0.740232507835400;0.734622556644298;0.726633057224986;0.716879456483719;0.710477815351975;0.698663628242075;0.686731817735206;0.688833219465563;0.678544050171688;0.673219727240860;0.672404514023493;0.666015471051639;0.666184567010454;0.667385693022199;0.672848195067840;0.677070265517954;0.679986786051990;0.683152815106281;0.688895060535882;0.687671164895028;0.690648101529744;0.687217565986740;0.685100680559113;0.679909161716794;0.674284336610536;0.667413000365155;0.661024965008037;0.654669740536783;0.648033073016203;0.640979133940671;0.648460604308564;0.637167138608740;0.635298939311175;0.632227655226668;0.632946057949473;0.638257926422527;0.639681784683204;0.643510323291952;0.648546971578416;0.652472533486276;0.651389115139415;0.653142661630364;0.652924886285095;0.652659340424164;0.650564466058352;0.644806529917823;0.639382637034962;0.633305166673270;0.627543700130657;0.621083926944007;0.613507927779136;0.608544659297996;0.606687639837933;0.608171353668159;0.598640967117432;0.592188523170279;0.590743934890672;0.592345078953338;0.588426463551671;0.589301587349266;0.589197505202158;0.588826147442971;0.585982142717227;0.581883153773353;0.576469978772425;0.572271508673067;0.566448225716145;0.561029769845877;0.556541577669200;0.551573317948527;0.546096097439498;0.542733598604096;0.534909159630103;0.529400906461672;0.523361118390235;0.524820479374224;0.521168842421047;0.515558661920286;0.515465420008527;0.516157944406425;0.515330165202042;0.516659743894065;0.518864401135213;0.522955434204184;0.527159175885927;0.523392661247528;0.524552400854350;0.521238090365862;0.518359460061514;0.513722533807064;0.506865974769965;0.499330004172114;0.489720958569868;0.482371078106456;0.471798232021196;0.460058296282110;0.448287583694575;0.440622795015560;0.428345683566499;0.419141314161821;0.405944173882013;0.398007489079740;0.391810370464161;0.385180767436349;0.381064590345919;0.377861532768019;0.374624018708104;0.371785053411759;0.365495619707771;0.361705591256549;0.356675489062667;0.352575559515651;0.347034611558203;0.342034138321158;0.336331482933260;0.332187733102796;0.328044318550545;0.321967232732066;0.314566774838933;0.313477130621110;0.306780186707371;0.303526006663075;0.295990603313501;0.291446794226330;0.289216304395490;0.287262725508642;0.286119762870809;0.286360031490129;0.286079726891888;0.285734076552634;0.283106587873397;0.281821174115182;0.279929431809986;0.278965177113770;0.276264511823927;0.273407188628255;0.270837461036204;0.268611149727804;0.266933906916561;0.262472898851713;0.258630739398944;0.256299021881079;0.253335368986519;0.249680851106826;0.243919936353914;0.239377482718237;0.234642906847297;0.230252419171315;0.227024479939358;0.224266865385812;0.222740795587376;0.221262368139733;0.219276794838012;0.217029517111723;0.215697389174800;0.214349034864779;0.212860377870184;0.210583995181179;0.208794423966604;0.207810143787517;0.206267170252205;0.204139010981087;0.202992703913513;0.202449566291876;0.201746940863834;0.201248615601226;0.199529376461517;0.198614863432691;0.196905701133678;0.194602664794750;0.193710174089587;0.192666965243381;0.191978608710335;0.192443149818409;0.192669789416396;0.192554414881896;0.193867955720465;0.194549665160520;0.195908377690473;0.197344065476412;0.198270712442355;0.199561531623186;0.201506119174968;0.202682439379028;0.204273389414266;0.205325953539213;0.206951871529176;0.208159243719674;0.209023042997792;0.209284094483921;0.210207770732618;0.210039922599359;0.209087534728023;0.208560251082792;0.208074518269110;0.208010803176986;0.207353723230468;0.207369784514084;0.206813247530742;0.206681171149704;0.205946602877439;0.206351122849847;0.206032934657135;0.205742925374397;0.205922398364389;0.206746677979216;0.207913843793094;0.208732631046645;0.210253829644187;0.212016553786852;0.213737184361274;0.215782030432133;0.217451516867708;0.220061845642347;0.221749116516065;0.223928119468580;0.226432652592704;0.228746051334971;0.231132338810600;0.233705895087992;0.236080496546723;0.238558392792670;0.241612357626006;0.244254490868883;0.247029865838941;0.249708008056428;0.252487591889187;0.255080432528319;0.257166939869514;0.258848178082353;0.260585776406896;0.262162156611724;0.263235359980334;0.264117818239432;0.265084950613584;0.266214791326490;0.267160993951258;0.268169198027117;0.268969620399523;0.269959330983534;0.270653609510629;0.271657568386736;0.272829511709150;0.274146974184220;0.275325637594247;0.276160155170668;0.277295887081518;0.278024800310693;0.279135781951058;0.280732891412228;0.281902062680040;0.282865362081217;0.283704393616696;0.284530986672802;0.284555883072976;0.284158388643511;0.284146080854750;0.282835978059491;0.281382214833211;0.279642627680361;0.278220742716522;0.276426634441492;0.273367258782054;0.271433291749297;0.269414489392124;0.267496188176445;0.265386889391190;0.263209439997567;0.261588702968963;0.259661788494464;0.257951329676806;0.255977659726412;0.255017613094060;0.253053681522927;0.251991854374865;0.250920828725163;0.250429420736212;0.249322498704618;0.249252988154924;0.249600843394845;0.249285903120107;0.250013701360784;0.249560612782198;0.250209395481250;0.250846622505342;0.251594750832708;0.251975679919243;0.253124093930754;0.253682064476824;0.254599576810616;0.254577257150565;0.255151906383437;0.255343572970718;0.255950436369784;0.256928202510199;0.257108868749700;0.257297760636042;0.257264344503102;0.257864795820884;0.256992058060226;0.257020018238913;0.256796985041013;0.256838120340715;0.257203649647600;0.256582824890078;0.256589170942127;0.256553289335747;0.257517307253735;0.257091114270868;0.258207107607397;0.259433138596359;0.260351786004528;0.261923793314414;0.263651353393804;0.264385853449820;0.264781979286518;0.265839337430085;0.266877588121918;0.267779125687206;0.269177075669687;0.268991640200672;0.269673117521922;0.269840966446388;0.270239205512726;0.270228026070727;0.269561480848894;0.269099705367151;0.269622154318498;0.269217414880866;0.268786646248025;0.269460581135675;0.268427157004647;0.268777800508934;0.269985890977406;0.269653045316533;0.268921875069834;0.269475832542858;0.270595064204646;0.271472205735225;0.273505671237241;0.275700853938324;0.276148882929998;0.277898160754831;0.280226810127827;0.281227888061082;0.283692572430139;0.284191296973855;0.285856631947696;0.286483575012601;0.287614552977913;0.288766919503308;0.289945221996111;0.291314182501245;0.291828647844591;0.294532148684755;0.295066752461105;0.296394372979958;0.299096158274577;0.301511832664575;0.303990798238138;0.307521425086906;0.308929778586581;0.311083843755496;0.312125866218883;0.314263393997300;0.315269955289184;0.316809241257858;0.318122703874192;0.319881531101267;0.321430479002204;0.322649823494554;0.324600110553262;0.325662906791969;0.326235952075883;0.327480846857636;0.328382624358725;0.330319572597746;0.330397271256774;0.332052034448947;0.332745443480221;0.334127626452956;0.335114599358658;0.336100344539755;0.337833263566487;0.339347480670918;0.340858416821234;0.342399477423837;0.344210701083414;0.344128847645944;0.344979602554273;0.344557379643983;0.344121803217747;0.344019079654117;0.342883618195145;0.342856839906869;0.341113450730445;0.340368116898351;0.338770250169113;0.336862973110917;0.334459093240371;0.333084642810753;0.330768593830108;0.328424747456716;0.326464053014742;0.324905497550667;0.322252184878164;0.320444866416508;0.318271419969851;0.315847907119218;0.314201296211451;0.311581688072987;0.309722235521783;0.307367899921642;0.305422521592993;0.303606394528345;0.301807760875915;0.300212746801772;0.297839919551585;0.296110721840433;0.292495531886756;0.289214390832648;0.286019253074681;0.282742933044407;0.279480447533332;0.276057894921421;0.271843138805484;0.268278341680556;0.263996476599841;0.259790108483407;0.255767251589983;0.251703537151893;0.247702533755422;0.243431783903474;0.239476276419297;0.234802852741157;0.230424252688072;0.226427714322138;0.221082344703571;0.216823847878293;0.211870484200971;0.207759443662958;0.202739576533389;0.198274592702067;0.194362116438539;0.189758423266782;0.185872297000484;0.181292732751141;0.177508985883533;0.173643990191554;0.170369831763224;0.166840844064149;0.164153977218343;0.160537919211739;0.157568101092209;0.154153442230871;0.151281097101264;0.147745100901918;0.143969008882058;0.140422832256022;0.136994790774160;0.132748649644781;0.129140554517840;0.124619735624362;0.120745873433888;0.116760800643041;0.112621272105843;0.108739137550113;0.104964938221867;0.101416995190601;0.0981358184608244;0.0948263770765239;0.0917555194897197;0.0887567659254773;0.0858137270797142;0.0831151746289809;0.0803762268983312;0.0777034669950688;0.0751089388452445;0.0728338037621753;0.0700867502271890;0.0676706515658575;0.0651937027857045;0.0630088859402293;0.0608636790296923;0.0589666240068885;0.0571422611025143;0.0554536672223233;0.0535388754004168;0.0518494873694050;0.0502815696021485;0.0487976185661296;0.0472745790150440;0.0457059694305847;0.0441344042670153;0.0426357334042835;0.0412737890339901;0.0400470265242571;0.0386758262419478;0.0374228254053257;0.0361086017096939;0.0350423423456895;0.0338533116989186;0.0327461537374831;0.0316379115997996;0.0306844624383686;0.0296776235533065;0.0288030804163107;0.0280750837514985;0.0272320072173612;0.0264525431043888;0.0256451825567800;0.0248735539290162;0.0241453378725284;0.0234036727879052;0.0227128890081323;0.0220287618789182;0.0213679224611068;0.0207171010152417;0.0200718920507962;0.0195078660677113;0.0188521186618996;0.0182613471449207;0.0177183156770188;0.0171239117149247;0.0166137318500524;0.0161205514560893;0.0156969700564823;0.0152834445879469;0.0149159224380950;0.0145945813027069;0.0142600568004729;0.0139652186210287;0.0136848487735183;0.0134438321626517;0.0131797040651911;0.0129529000388589;0.0127350470785746;0.0125526980366548;0.0123322267472314;0.0121407356254417;0.0119526695914624;0.0117768309095611;0.0116058142585011;0.0114624154905952;0.0112884581994703;0.0111523081576706;0.0109816122520836;0.0108447609076611;0.0107019358166293;0.0105452625265900;0.0103976147254578;0.0102370171405638;0.0100799202587827;0.00992326654784410;0.00976541976301981;0.00960909315762590;0.00945703219832006;0.00931870112647371;0.00920062341847674;0.00910724533957191;0.00903582278389472;0.00897245626229707;0.00891725640841204;0.00886442886538760;0.00882835400370967;0.00877815739550963;0.00873691490349212;0.00869936097381503;0.00865945871463807;0.00861440643956564;0.00856902198635766;0.00851839130854003;0.00845923584241169;0.00839114590755988;0.00830760452940486;0.00821040382186513;0.00810078931325400;0.00797251328599235;0.00783631334614351;0.00768275135980739;0.00751262879732857;0.00735172941404391;0.00717790311717353;0.00701354159364021;0.00685544388358056;0.00669266378131452;0.00653352711712326;0.00637611066843546;0.00623903863605714;0.00610449648346843;0.00599583199708446;0.00592702467970192;0.00588672149075486;0.00586054887091631;0.00583409759532236;0.00580914521670840;0.00579920008291713;0.00582293011847458;0.00583570669584571;0.00584547671464141;0.00585515594547589;0.00585590853180227;0.00584529711837125;0.00582562051330556;0.00578946680076661;0.00574043430760864;0.00570001206134699;0.00564239127596952;0.00554704987885665;0.00546465042120103;0.00538441596965955;0.00528213197007600;0.00517065389613357;0.00505307369389891;0.00493100933897315;0.00480433534945881;0.00467367769902028;0.00454383363549751;0.00440345441816550;0.00427320334363571;0.00414650530823452;0.00401974261885200;0.00389907795629809;0.00378887682260729;0.00367610444491539;0.00356386487734395;0.00350704336802694;0.00346705561471495;0.00342903820904713;0.00340351565880617;0.00336309940449981;0.00333815250199500;0.00331704466279844;0.00330470805655141;0.00331864697402723;0.00335586394677093;0.00339842649428742;0.00344342215921094;0.00348766944546389;0.00352721750302116;0.00357929078615458;0.00362917113488706;0.00367454108295683;0.00371565801670440;0.00375690389409067;0.00379223920660237;0.00382400984998542;0.00385355847133142;0.00387101071033972;0.00389342973574071;0.00390331233455622;0.00390564232599506;0.00390350992742925;0.00389311047686528;0.00388299939788993;0.00386594802102597;0.00384215326875188;0.00381646446281527;0.00378597602417214;0.00376398133509587;0.00372992473812495;0.00370426076063098;0.00369170324327218;0.00368961285203870;0.00369459387057989;0.00370416303898385;0.00371905039897821;0.00373698278781263;0.00375084427464663;0.00375968048291140;0.00377201052193026;0.00378194438707381;0.00380928528088846;0.00381927968446960;0.00382825938788675;0.00383545277955228;0.00384741976551634;0.00385682647987785;0.00387087455149951;0.00389100515908064;0.00392417541199339;0.00396543964267046;0.00400738006677446;0.00559264368279675;0.00598318173713688;0.00665132014695392;0.00745601321303069;0.00840976505074445;0.0118605412321152;0.0125915223768181;0.0140679572763331;0.0165146907796416;0.0193602883015199;0.0212845400670048;0.0244716304924635;0.0276403059285479;0.0311837609359902;0.0350199258828633;0.0393075595537735;0.0437905967611607;0.0486065281447861;0.0540472369789621;0.0598427424806854;0.0657636614082128;0.0721723400506947;0.0786147920592363;0.0853772162049330;0.0922995123674093;0.0994447500051676;0.106657497402937;0.113705360907840;0.120663016802530;0.127405794131497;0.134156165709829;0.141083285965293;0.147577385663890;0.153640695057621;0.159276153772518;0.164083894876979;0.168943195802806;0.173484949974025;0.176816043269111;0.180257210130216;0.182524658881707;0.184580789283294;0.186031179660357;0.186741393779188;0.187068933996935;0.186801378929480;0.186549839088476;0.185658521487803;0.184651937505963;0.183535362150559;0.182190080708667;0.180862713138458;0.179561289243789;0.178375636453571;0.177125980089491;0.175359523299225;0.173968226771721;0.172247066152874;0.170747098110116;0.170062258921581;0.170271478734330;0.169826305885576;0.168757451072263;0.168177338500808;0.167808908450986;0.168885184343232;0.169705859941924;0.170224449605531;0.170928262433105;0.173784977868858;0.174524559908258;0.176974369366489;0.179513628759688;0.182622138538777;0.187813096365505;0.192143576367448;0.196355656518464;0.202650693716402;0.207274393211467;0.209251604834208;0.220473928715658;0.226949165932560;0.230839381199418;0.237532656679617;0.243606411653400;0.250442490241173;0.259255291450619;0.266081014413415;0.272540154220417;0.279592285408933;0.286990163959037;0.295401671532869;0.304154412256528;0.313404301438381;0.324214325409424;0.336981494292688;0.351569577555301;0.366657506231474;0.384241968348723;0.401349439402482;0.421304533271407;0.440205847659572;0.460823724656100;0.480151115289998;0.497819367909569;0.514245869646369;0.530709217215084;0.545915839849775;0.556563533662291;0.565914686986321;0.571011895404638;0.575597496376996;0.577718219252587;0.579047156664056;0.576895438159397;0.572627089669098;0.567597486434106;0.561983560221086;0.555633369075306;0.546010543283082;0.538842395290016;0.533180327804455;0.529403876803942;0.527138665683694;0.529678588225050;0.535678717093465;0.540035776016522;0.547996514060364;0.559074027972627;0.571557650718199;0.587257818383976;0.599618771201100;0.611283727254044;0.621659346523444;0.634421074628625;0.643732346056221;0.648428072856904;0.651511920736248;0.654089207980300;0.654549457840335;0.652693411993376;0.649061673555046;0.638824940115085;0.625889576326898;0.619034626770754;0.607105291467843;0.593033166972887;0.581497314155019;0.566702707891470;0.552706731689500;0.542569595841613;0.534980029928493;0.528636119994405;0.524208381851763;0.522975844916493;0.524966673789302;0.530484150690678;0.537692578265459;0.544680000078545;0.552038989191521;0.563225361276114;0.571888659078084;0.578976487267605;0.586244347929220;0.598617292561930;0.598681848667781;0.597124787971928;0.599092409994110;0.593661312047015;0.586790088900975;0.579214039132578;0.572616336207896;0.560458089534608;0.549762879871845;0.535164602821780;0.522696420962519;0.510320567198502;0.500654279609631;0.495880232661843;0.488343332411985;0.486556068546076;0.488855122365085;0.495886593849566;0.500265375841629;0.509040951881995;0.519488409248779;0.530229411236941;0.541468452041822;0.554470090895206;0.565751178588776;0.576339242354311;0.585394376409595;0.599381730917701;0.604613705177768;0.608714913855729;0.610878090748341;0.611067080742436;0.609686035853214;0.602750875313881;0.598136865130611;0.589562907085757;0.578306904791645;0.569067821638664;0.558939889918286;0.550513381909754;0.542718880494246;0.532735630184220;0.529345807027413;0.528217675728151;0.532785726176413;0.538805690429997;0.548398240245225;0.559710616556164;0.571763417369033;0.585366006798350;0.597826935075755;0.610762723397367;0.621386533621645;0.631692215520004;0.639599003849713;0.644898749647507;0.650852746313996;0.658694529520244;0.658800587090676;0.657585331615925;0.658139746410794;0.649906294988699;0.637030024133064;0.630176387897482;0.616668435706306;0.601405387412681;0.588740926897908;0.571282648891508;0.554601366478466;0.538884751817043;0.523048688334503;0.508612991987846;0.495850002190483;0.486783796867706;0.479158571641816;0.472782539329422;0.471185244132298;0.470127324962833;0.469682367176322;0.471226542940207;0.474227227345549;0.474380950282970;0.478684689033179;0.480474717936215;0.480185983708400;0.484205886127370;0.490329897245777;0.490378224987213;0.488681478424772;0.485527309999835;0.481626613359804;0.477339086771439;0.469409504515212;0.462492688502398;0.455934648659677;0.447180001984624;0.441404602626060;0.431057967326256;0.424790243535782;0.419542553639677;0.416545488474431;0.417228417096463;0.421144910131354;0.429054583502470;0.437061215057497;0.445363775707918;0.456765976455775;0.467661370558111;0.478285221480722;0.490777372905825;0.499350450568300;0.507484239356111;0.515719168874089;0.520704306195691;0.525135219880857;0.527968561850671;0.531219198701371;0.536711028977004;0.534135197895401;0.527212836119276;0.519274840435808;0.512939984786365;0.503586833627999;0.491319662880979;0.483785981884028;0.469886625594366;0.452832864165216;0.438878315164702;0.425830373331190;0.415080310601519;0.407099955747831;0.401249009532769;0.397117329879467;0.394321709412629;0.390158969834054;0.390798672325009;0.393004110816923;0.399721716088427;0.406907658008131;0.413242885299091;0.421489981507198;0.431429824349939;0.439530951591728;0.448341588266904;0.456069619521623;0.464858084350036;0.477292276635126;0.479836697050785;0.477941850685360;0.475123860065783;0.477162545167897;0.475537373622312;0.468520777781299;0.463022155481282;0.458851162302250;0.448824331759449;0.438818488635475;0.429298197289369;0.420234540510891;0.413340087431707;0.409349529362301;0.405288461144679;0.403192423123790;0.401162897940807;0.398010024128419;0.399804920821736;0.401673642373517;0.406799741889507;0.411690450394457;0.416942960539762;0.424781579148920;0.431368961354779;0.438051214719735;0.444257410021487;0.450251559676641;0.454726554430845;0.458383570452721;0.459884667727371;0.459999441929258;0.460083685134142;0.453555045275145;0.448779407326245;0.442999763626522;0.433171068575554;0.421317695201100;0.409852552777866;0.397896615311769;0.384789266849667;0.372133974521038;0.360229291220221;0.347008274716269;0.335907778663156;0.328157668211413;0.320447245664014;0.314596034067483;0.312246323725788;0.311678013746574;0.310309247318695;0.308912703498632;0.308405146569400;0.310662333666716;0.312260849755462;0.314689901732564;0.316899206883459;0.318758456417551;0.322088777547826;0.327542900075703;0.329372022884104;0.326225505929326;0.322434457631371;0.324505212226047;0.322746704470222;0.315943045011053;0.314171958356255;0.311196771343148;0.305202597085304;0.302148476563218;0.296953019532146;0.294010552564344;0.291494502406694;0.289577305767609;0.290315098775832;0.291955682538292;0.294271630691425;0.301130377653065;0.308555959033724;0.317182531988698;0.327619155645190;0.336201237707092;0.345494840546477;0.355083636057696;0.364456505972850;0.373183256936663;0.380749053914999;0.387801861934094;0.393359354968308;0.397140819630510;0.399171703675061;0.401611135750827;0.400817159924738;0.395272387863703;0.389484255534533;0.385046691854981;0.376495428145535;0.366282689514951;0.354806414464284;0.343717700079301;0.331757639832893;0.319239314897647;0.307262836238603;0.295751416209042;0.284801000057102;0.276549772870509;0.270677666534368;0.267797652063653;0.267240096277466;0.268518948967847;0.269163626478646;0.272816249489886;0.277605180819919;0.283295887947916;0.289665976035152;0.298833646790340;0.307663878811561;0.315108458339937;0.321948397172501;0.327907780230450;0.333420795560792;0.337777568173547;0.337835471489171;0.342060475878496;0.340749685780006;0.335928882829487;0.331947748378630;0.326936520651263;0.320863110207086;0.313368635860943;0.305349215105770;0.296811040135189;0.286248314305062;0.276863634613834;0.266066461949483;0.256079782100986;0.246436129465621;0.237677120775259;0.228932928644740;0.220842962163666;0.213610523237505;0.205946120133703;0.199044482464725;0.193411098397321;0.187055412882740;0.182303513211023;0.180604927181758;0.177126212608847;0.174756225145584;0.172652850958404;0.171070023941958;0.169673606998699;0.169540406201619;0.169186245598068;0.169862695530858;0.171050432756032;0.173355373565194;0.175626413417080;0.180698090505552;0.185168632496861;0.191461804495669;0.197172069667903;0.202720269484904;0.209617275529993;0.215655033211433;0.222263104737695;0.229684652657404;0.235961359811966;0.243256813466222;0.250639708856173;0.257081392567239;0.262105359153417;0.267055075181151;0.271250216904133;0.274655832315888;0.277782174212643;0.279516786065939;0.280377646550235;0.280119692862863;0.279700508091711;0.277262619089141;0.274008652443101;0.268764379058372;0.263456666586884;0.256627244541363;0.249985778065930;0.242754791409550;0.234780604688874;0.226919212684506;0.218127093137192;0.209514948457863;0.200743993885384;0.192130404362873;0.185122466373896;0.177720908250918;0.171056998072815;0.165025431880471;0.160768188656615;0.156481530749015;0.152344738443141;0.149724651682347;0.146881022637169;0.144152089719290;0.143648060367611;0.143975657133212;0.144013447367953;0.145155926112350;0.145587404019626;0.145972074247504;0.145557312857815;0.145987056766805;0.146846591035906;0.145991018766808;0.146777131369670;0.146954155870230;0.147737980343351;0.149312167797441;0.150240275400762;0.151404366420504;0.152693388936927;0.155262012253130;0.157723504494091;0.160732770020322;0.164569652426128;0.169004878292115;0.172571304013547;0.177182628570088;0.181095010381578;0.183981996292121;0.187888399134521;0.191553931528023;0.193898554341661;0.196153089444519;0.197959592302608;0.199758395267699;0.201297018853892;0.201379906201493;0.200718937096867;0.198574387282833;0.195434085771159;0.192792654235804;0.190045119448469;0.185115279515830;0.181902727069006;0.177714291609483;0.172401573670985;0.167886570110591;0.164194899258786;0.159405074056115;0.155634100393898;0.152561745464082;0.150508458623677;0.149799131695020;0.150317579596389;0.150970895871475;0.152025567625742;0.154497861388205;0.157184612026956;0.159193187606478;0.161996971459573;0.165126842898373;0.167847773266348;0.170428548072767;0.172510397569879;0.173985046410091;0.174713159552037;0.173271594479274;0.172533431564838;0.171812458415521;0.169819101072741;0.168176472918414;0.165328708770129;0.161633126378393;0.157736293805645;0.153234349364170;0.148001582734312;0.143522435317855;0.138357858988592;0.133217429946154;0.128001112421231;0.122900348616034;0.117943771909472;0.113273254793022;0.109216752448516;0.105275595114782;0.101941414702210;0.0989184350931148;0.0963831914254092;0.0944806011370552;0.0921706475738529;0.0908912362818641;0.0902552493317223;0.0885628969812655;0.0881166277694051;0.0871175614143418;0.0860164640117363;0.0855437453175994;0.0840297952224845;0.0827220382262426;0.0834615356842254;0.0831664978394516;0.0829441035219616;0.0825602451848955;0.0820582739170249;0.0819336550372664;0.0816679456290174;0.0811190036436816;0.0810609165072239;0.0809380742373090;0.0808694390555304;0.0805925218118516;0.0803473122905320;0.0798980195152953;0.0799609193137522;0.0795196631671840;0.0788186621333958;0.0784670975974798;0.0788263657397600;0.0789328570618489;0.0789135308448205;0.0789576513860898;0.0788766115516916;0.0782754691307791;0.0781750157502502;0.0771274665630511;0.0769491919499642;0.0764129068042015;0.0763445747612188;0.0755520616848474;0.0751104373561293;0.0749119096364553;0.0753793884098000;0.0762222773471942;0.0771440843880885;0.0776593673311727;0.0785731166267456;0.0796492963390329;0.0806959745346883;0.0819964821496004;0.0835481023538344;0.0847947699148854;0.0862451941136583;0.0876074178174384;0.0890931416818328;0.0901260136067334;0.0908983978668081;0.0918295607889517;0.0920439826157711;0.0920281712010748;0.0918972064797940;0.0914815699531756;0.0909284318513972;0.0901007513126524;0.0891404226173317;0.0882923725134939;0.0873908474333561;0.0860450023701795;0.0852720394499618;0.0841476658301504;0.0829649991832778;0.0824641340525171;0.0812306929785876;0.0806425611521393;0.0804974279923673;0.0804100230322798;0.0804992329481326;0.0808146417084614;0.0814172047140585;0.0820803312519374;0.0827577842742439;0.0835085364427573;0.0842812963321351;0.0848542812195375;0.0851692584777448;0.0853630593969909;0.0855569407842803;0.0851402004063693;0.0847527869955010;0.0841502071853686;0.0825387443494138;0.0813421024138956;0.0797151223923398;0.0783121344392073;0.0766873993661918;0.0752144467632295;0.0732898696575062;0.0716511455101523;0.0699669885658120;0.0681528287233474;0.0667257281558351;0.0650252583676229;0.0638835151044630;0.0627519161810384;0.0618651307993778;0.0611160527066696;0.0605650002522239;0.0603373158887483;0.0603079034384256;0.0600472860495817;0.0602815272452450;0.0599471201357499;0.0597994106749283;0.0598917668531313;0.0598218145748428;0.0595893881611371;0.0592126519019507;0.0590408496962608;0.0586383822810272;0.0581492676564252;0.0576453064407833;0.0570661755930891;0.0561733381029164;0.0553820110353294;0.0543771859242523;0.0536544920990255;0.0527912814787470;0.0517703824833482;0.0509735461221334;0.0500107939982894;0.0492054825862044;0.0485354123496410;0.0480257453003377;0.0475694750159860;0.0472053579925657;0.0468785568148412;0.0465212230028766;0.0462402504580067;0.0459144327886863;0.0454908764551122;0.0450856682909590;0.0445759284112768;0.0443037589600261;0.0438223098982243;0.0434823755982814;0.0428985646359481;0.0424086532287879;0.0419916742874258;0.0416836004194491;0.0413141484166542;0.0408761563872033;0.0408070122708046;0.0404119997486676;0.0401011001415873;0.0398733718978419;0.0395941208967084;0.0393311985944975;0.0389360161471512;0.0385898203861275;0.0383479113784309;0.0381981206266224;0.0380505226214846]; +expected = [1;327;788;1600]; + +actual = CutWord(curve, maxStep, minStep, iterNum, pointNum); + +assert(isequal(actual, expected)) + +%% Test 4: Chja +curve = [0.280690131377320;0.296529842397577;0.314327584016314;0.330643392947060;0.347946293203413;0.366630661583450;0.384008972233950;0.399062651335847;0.414900456499713;0.431347404805100;0.446887078401603;0.464179580240222;0.479449489962536;0.496248784558480;0.513898845619393;0.532142834968500;0.549064011348160;0.568366976712860;0.586421738681645;0.606776968786200;0.624255231107639;0.643539323800788;0.664482331111802;0.683756118409030;0.702069192137607;0.720612502357778;0.741686900322209;0.758039728927002;0.774999787866641;0.791196369675025;0.808555507404429;0.825232457455767;0.841428369461481;0.858835784277523;0.875601009406417;0.893691525486765;0.914981485671642;0.927894935684000;0.942895139618309;0.958804755417530;0.978660238328783;0.988695536494770;1.00704416566571;1.02209155165555;1.04005961967517;1.05722183049128;1.07499451282113;1.09544771478400;1.11905238818273;1.13711568109113;1.16024794837859;1.18707217018392;1.20653463300476;1.23010243106425;1.25586025229413;1.28391143743616;1.31027551670560;1.32886032688183;1.35724697598627;1.38115046116804;1.40879530717179;1.43225712705576;1.45760353600887;1.48140714003792;1.50829240153259;1.53278858275800;1.56128644577749;1.58019805617400;1.60454721464096;1.62574039111648;1.64709463183786;1.66922626873698;1.68986854670261;1.71766025002910;1.73435736911057;1.76180486706702;1.79415592228837;1.81579924048850;1.84174148681080;1.86591253563959;1.89139797527310;1.92146024259602;1.94157639876945;1.96785795356654;1.99105708956346;2.01194255144558;2.04019401829884;2.07336548875665;2.10634358591467;2.13371904949056;2.16913397280363;2.19459706809112;2.22401959762673;2.25007432376338;2.27068903754491;2.29357159669000;2.31563421615421;2.32728279711088;2.34810781215771;2.35502281554670;2.36717233798299;2.38054417139169;2.39337256021242;2.40649382461092;2.42215814164161;2.44161080704232;2.46225116177941;2.47370464266011;2.48217502700515;2.49537068868715;2.50642491745283;2.51411905213433;2.51903610806155;2.52624047972677;2.52952343101558;2.53354952058950;2.53007972794700;2.52451867920893;2.51859224013923;2.51472117565719;2.50162495875924;2.47602214480378;2.45342205160213;2.43016052937766;2.41052690306340;2.37365588166018;2.34283054170680;2.30746010936798;2.27117092730801;2.23395433666514;2.19830958455187;2.15999806474867;2.12589782957693;2.08976563218665;2.05616330640059;2.02452745891461;2.00343592566404;1.98705271643741;1.96248840998674;1.94359695696769;1.92220086365494;1.90301327867847;1.88113134359022;1.85770181994104;1.83583636720900;1.81993814815375;1.79223846259821;1.78438905337291;1.76295748785328;1.75127512756656;1.75950708449517;1.76335190467235;1.76251682790455;1.76521238004721;1.78186017139356;1.79437915926646;1.80968999361615;1.81790772774614;1.82431735178004;1.83605765679228;1.84883789352640;1.85771949549224;1.87131406979479;1.87588394224324;1.88507145543855;1.89205486233552;1.89336263106968;1.88879622571742;1.89240995302378;1.88254807069043;1.87963063211606;1.87170810014741;1.86862188977637;1.87326007910080;1.87198194679833;1.87483217299982;1.87962439659617;1.88464417259227;1.88574813350390;1.87973059957365;1.87823604259255;1.87434599647989;1.86625115772233;1.86998516172433;1.85797247126968;1.85279983937780;1.85364198862139;1.84368368623697;1.84560602079376;1.83729841537577;1.82345697784136;1.82091575780655;1.81155655126856;1.80331136533928;1.80217975188937;1.79628181890147;1.80162112646258;1.79892851272890;1.79370896501820;1.79525882418534;1.79091605508754;1.78890762396926;1.79128992004368;1.78597660507745;1.78307249031836;1.77841924931428;1.77335982308281;1.76729223694761;1.76826021771027;1.75712252527170;1.75102345483649;1.73814949887708;1.73387230074488;1.72730981610782;1.71940225735394;1.71387514228428;1.70911075708318;1.70544867311051;1.69910738374650;1.69593183347867;1.69320188864402;1.69125374456046;1.68569845797622;1.68567299167212;1.68677610266282;1.69343451303024;1.69615966746298;1.70448089773173;1.70704759997515;1.72115689844639;1.72062386433225;1.72414745983482;1.73487493534484;1.73619370027244;1.74788365077963;1.74830872264516;1.75003072883438;1.74893283140125;1.74705675595584;1.74421299816453;1.73088014487820;1.71711993375306;1.70032236378144;1.68569978537410;1.67440227704184;1.66002698655250;1.64457452315273;1.63663473626409;1.62211419287918;1.61412657985514;1.60358573533741;1.59185869350947;1.58400714607720;1.58298983839224;1.58293501100712;1.58478994065764;1.58709520285573;1.58671010355132;1.58648204483839;1.58535332902729;1.59092422519812;1.58320559391867;1.58379585132571;1.58374193365322;1.58647078559555;1.57830226773976;1.57443051943887;1.56550221839040;1.55694935852730;1.54412694536710;1.53064325994311;1.51395179451301;1.49629843110157;1.47340161233750;1.45174267680980;1.42760806966926;1.40394546746101;1.37874868653940;1.35467521156051;1.33313144781286;1.31479301021147;1.29809884017951;1.27695204503711;1.25996815260219;1.24646627707530;1.22646917790493;1.20860616894673;1.19719470080735;1.18727204704920;1.18386452706892;1.18006418067074;1.17198031778026;1.17544956974426;1.17561544856583;1.17592275505899;1.17558688707245;1.17973749323206;1.17969608749693;1.18390789712143;1.18115976535501;1.18165785351183;1.17723723682713;1.17770810637757;1.17754557283476;1.16532983859150;1.15470232716113;1.15212016769396;1.13855836856098;1.13045485556498;1.12176369195226;1.11198858915922;1.09711170335745;1.08135241364211;1.07196596653668;1.06172035989887;1.05838767433053;1.04834931335666;1.03940318785285;1.03430803676169;1.02951696112794;1.03185574264924;1.02691530833619;1.02800538387424;1.03116474253879;1.03776899575268;1.03926459936340;1.04694388888813;1.05473649670478;1.05846006002477;1.06581662123131;1.06731843586282;1.07220167460502;1.08175504331780;1.08559527360501;1.08109080256391;1.07864310973560;1.07478210611458;1.06927888492363;1.06410591204011;1.05940594505804;1.04764946852811;1.03691184012345;1.02472803160007;1.01143668085135;0.997288894302828;0.982525145982446;0.967244132754768;0.954905064119672;0.950712320899688;0.949216752914550;0.943471246687264;0.948631843215094;0.949111282151507;0.955210146469184;0.969412991559959;0.976289127949168;0.990093204549947;1.00428963681830;1.00819435044085;1.00944471904115;1.01497900351019;1.02295027486232;1.02169837366326;1.02341220132568;1.01829015197301;1.01675694869080;1.01769439006903;1.01571325659211;1.00629152333940;0.994431677880817;0.987954196284117;0.987967022239253;0.996601163181245;1.00664434815244;1.01282151676601;1.01278664176947;1.01349243509057;1.01709016670437;1.02392984175218;1.03230180508093;1.04223367616898;1.05006182103318;1.05587132746222;1.05779977818333;1.06115426181069;1.06293730829413;1.06448599298032;1.06521254056320;1.06128614151468;1.05912886575823;1.05711298687481;1.05219539778887;1.04821155204165;1.03553486685207;1.02324764067420;1.02262134780168;1.02808746327743;1.02571249155095;1.01840491340633;1.01262322111070;1.01154856747612;1.01076800835717;1.01043840247701;1.01286951293697;1.01507524702452;1.01666030665661;1.01923149154678;1.02074830298982;1.02213448229374;1.02346324175207;1.02502043863742;1.02352713939392;1.01914925092308;1.01381751278284;1.00713435668339;1.00642546125042;0.997325706186773;0.983976729358666;0.972059743617841;0.960765234473369;0.962842023749022;0.960999321614887;0.946595183985472;0.935426320928669;0.924538034131551;0.925415744937573;0.917533247620625;0.912390055402326;0.907839571923192;0.905151568854562;0.897745165798887;0.893554305286325;0.889072998659905;0.884147746706623;0.874851782068808;0.868295815202029;0.860670433369963;0.853818171602620;0.847195256042860;0.837450444451247;0.827408667694678;0.817940788229456;0.804174603636065;0.788449920215488;0.785301150415684;0.778851375154308;0.771726693598350;0.759810198539365;0.746564585496406;0.741318260414159;0.740717192857705;0.739499687658132;0.736341565929845;0.736756826017682;0.737782114677969;0.738230650370905;0.739471459155961;0.742305686104945;0.744214063711422;0.741725990664271;0.739776405033328;0.736339925097013;0.736448370117425;0.732074461579779;0.730130254491036;0.727851549048205;0.723139004276744;0.712087132061586;0.702475433502222;0.701603924601409;0.700257343360223;0.695087786628764;0.687468501460692;0.677702983878093;0.674366091811237;0.671941157937378;0.668566464419293;0.666100883211383;0.663522161191297;0.663182837196121;0.660643270263572;0.662175130950948;0.661808650916788;0.661046467075279;0.660220912749421;0.658743655641231;0.658224986038293;0.657636750777748;0.658176552259349;0.657071983399435;0.658663914840862;0.658992826939081;0.655841264572137;0.649620058793993;0.652131379546243;0.655714479972368;0.661340949448826;0.655188778321072;0.649764777166371;0.651119514183809;0.654321194832587;0.658028873945115;0.658850770013755;0.663090570272623;0.666675794888326;0.670204500331935;0.676132054230553;0.681515071934077;0.683993502684814;0.684610340855549;0.682856332669662;0.682750229890077;0.682964631051379;0.679425815703491;0.676437104904742;0.674424184039141;0.673363339177359;0.666547343965244;0.658937121821497;0.659296361381538;0.661275097458883;0.660386431429313;0.655262469375172;0.647880602243186;0.644801747386562;0.646823992241001;0.645061174070637;0.643495718764212;0.643264294558099;0.642727230071426;0.642397310556696;0.644206198631201;0.642241093776936;0.642461946468281;0.641137985661583;0.637559638658667;0.635958962290552;0.634121891785382;0.631093512990610;0.627707766043523;0.625749238371124;0.619043265454006;0.612291534430270;0.604417219088579;0.602420815778573;0.601517018359625;0.599205845576153;0.592530221501294;0.583241172180453;0.579925049117071;0.579254696387063;0.577607552005034;0.575266977420859;0.572039434621696;0.569476396855123;0.567735067391348;0.567106015976052;0.566624755510941;0.565557044283574;0.564339658691474;0.562633840994839;0.559541345458821;0.557680941704953;0.554741211490183;0.554012923466206;0.549471510783365;0.545569410278140;0.540542324670924;0.532767403751273;0.531172703786338;0.530087268441075;0.528019775481584;0.520438149849277;0.510820849831356;0.506614071673575;0.505040667133936;0.506342922406619;0.506081579926324;0.507401580787911;0.509248592181881;0.512296261230854;0.515879714304953;0.520180431844726;0.525280174763137;0.530023147942098;0.533494327989366;0.535762976096258;0.539531692388658;0.542862112100393;0.546100037510392;0.552352084552342;0.551686059507701;0.550102819596847;0.549138952961692;0.552836646006473;0.556186015725350;0.555466385027301;0.550651611518058;0.545813521647519;0.544050868428720;0.544618745627488;0.542516905999266;0.539938308333109;0.537678936802450;0.534972665895486;0.533185739639239;0.531403976142139;0.529431163907917;0.526611477559813;0.523627369910351;0.520211588146584;0.516594064713870;0.514000470166604;0.511266823571268;0.508601769278100;0.507956549867791;0.505608326570687;0.500978126207107;0.499532214714689;0.499849572453879;0.502074939677985;0.502043186400113;0.496573893345011;0.494156735707230;0.492741244283783;0.494035604364784;0.493847423569289;0.495009114478111;0.495900124906246;0.497381715837732;0.500092212898857;0.502578576867812;0.507011136716381;0.509215248733091;0.507951497913779;0.508860301153378;0.509021627113769;0.509770553970241;0.510299538432188;0.510979491793623;0.511451731794186;0.510010055358394;0.508298887186894;0.506418033711701;0.509707372355536;0.513765629153503;0.515285816472156;0.512379533694886;0.510894183419804;0.510425734966114;0.513798244230911;0.516884695181827;0.520745745858668;0.524705917267031;0.528711505932077;0.536297278386068;0.539900363331307;0.542708417701620;0.545398796058584;0.546522987783014;0.548620186893214;0.552172829910800;0.551509250814477;0.552038087928226;0.551300013457373;0.551656128987805;0.549523151340727;0.542468997604601;0.538425124766609;0.540938562140473;0.541598188972713;0.538383723648204;0.536751622833907;0.536081972970157;0.535838949528082;0.540857479373437;0.546367914392302;0.554405333601306;0.565276731507892;0.571649460993903;0.576215047994712;0.581566203797025;0.589112237369210;0.598726725050296;0.604613032017059;0.612385220550276;0.618963162148402;0.626399955538514;0.635989607207740;0.638971954640605;0.642316472795044;0.642292418124351;0.642028167772836;0.650479063634772;0.654544395174707;0.661089460470779;0.663679476756423;0.668239983911816;0.670536872584597;0.671617883342016;0.677733054707026;0.689452844594738;0.703032053726971;0.707279554004826;0.708972791132481;0.714939139465594;0.727022507875872;0.734244269264619;0.738540383867743;0.741096511661613;0.748710154424975;0.752593249584895;0.755813613964094;0.755942624015778;0.750894698980373;0.750468733240674;0.754275545385330;0.762068733506602;0.771964083181392;0.781924419011322;0.793409885364179;0.802730790991156;0.806092115895348;0.807053638888774;0.825831709650401;0.851534752799460;0.863967969220622;0.867373249942650;0.874805788479689;0.893225626248855;0.903471202995265;0.906753704368153;0.911132485466578;0.920575745370494;0.928660891831885;0.930527643711076;0.931760957949956;0.936009661875997;0.936237185568904;0.942464714833328;0.951726233298838;0.969771115403874;0.997131093562030;1.02512123154197;1.05174661593824;1.06913983555060;1.08379799847451;1.12319627244028;1.15455453362073;1.18331432803857;1.19694343270780;1.22474759008043;1.25047210073716;1.26821451159246;1.27634210639353;1.28680659335490;1.29244595656924;1.29627526885531;1.29105100947522;1.28565645732355;1.27497919271043;1.26448139735420;1.25123707555149;1.23493458215325;1.22763279731611;1.23364110276998;1.24713293111122;1.25016732008632;1.24686777134609;1.26237986278000;1.28025820091713;1.28894981461532;1.29386252079635;1.30871352768076;1.32327116665560;1.33173955339629;1.33934101123712;1.34603361006365;1.34816633431061;1.34696837818409;1.34489922290278;1.33916145190470;1.32830761888981;1.31104209899972;1.29350337303728;1.27697130432523;1.26216155003648;1.24997487841822;1.25663314588846;1.25344445235770;1.24582465770900;1.24118915265451;1.25618676471617;1.26270549411668;1.26762214732714;1.27749904985269;1.28917956319317;1.30135679077462;1.30855331486329;1.32002229768048;1.32289680987948;1.31727148417057;1.31486190507963;1.31056390052746;1.29612011701383;1.27882045186976;1.26382328754153;1.25038797252346;1.23669470507764;1.21727806796111;1.20599807925148;1.19743958960620;1.18678439090119;1.17522195779219;1.17633498821535;1.17177801316990;1.16926321427670;1.17241513647474;1.17311724218549;1.17349954195235;1.17467748728868;1.17761811628019;1.17289826428610;1.17010841132979;1.16711239639244;1.15729379277635;1.15321378775361;1.14240118085576;1.13355520626989;1.12672592331682;1.11482278807220;1.10437963354385;1.09754203912681;1.09151644552625;1.09103765514438;1.09057389870907;1.09394943195863;1.10226092950298;1.11546830081809;1.12178011218991;1.12340401536281;1.13496554048566;1.14063935168347;1.14382199631307;1.14882069618482;1.15012262451270;1.15265374734318;1.15627450764981;1.15256834622932;1.15149874593546;1.15235077368293;1.14826374286715;1.14725621667068;1.15361265712694;1.15264049726995;1.15652496947651;1.16246138692768;1.16279832209702;1.16333934225115;1.17662134256060;1.17773330343910;1.17763010884920;1.18064097450245;1.17891619501780;1.18070047675986;1.17658291890822;1.17135098444271;1.16790938305329;1.15859505869046;1.14520412832085;1.13378867760628;1.12297922329329;1.10934876164263;1.09793619706833;1.08511086494281;1.07175051899221;1.05858541901352;1.06213418113091;1.05007121230516;1.03921916352928;1.03510781628745;1.02533921172139;1.01711900395532;1.01218824732874;1.00305740415265;0.999093373404959;0.988333492236920;0.976643266631645;0.969677996942224;0.955500841643547;0.940033178378904;0.927592277945330;0.919510330632887;0.905325242456256;0.903512286207230;0.901517309907124;0.889592068101862;0.886071957560962;0.885527419695354;0.879405741802849;0.873964375277125;0.876950151492138;0.870763151572251;0.875792373771545;0.875045746584085;0.872333912196268;0.873654173691565;0.867381592564753;0.862602112734238;0.857851899215004;0.850145471989095;0.835821622926325;0.827985841657959;0.821599946033638;0.819012568242977;0.813993614373892;0.812167583668681;0.800484805005743;0.801001294073649;0.794383403845281;0.786660975206547;0.781456923769782;0.776614096552763;0.769232855468495;0.764069439303259;0.755278006239248;0.747845542923166;0.742483443329231;0.739769972642211;0.737209668862271;0.731549265853675;0.729109852041495;0.723602508167328;0.727115696551967;0.725574329461529;0.728131082819400;0.735520076368579;0.734230812712925;0.742330197701301;0.750172016710171;0.756196334318854;0.764311396276627;0.767141857328035;0.768126663640281;0.768323374553345;0.768290711606761;0.763037108129880;0.757413583642660;0.752468463097746;0.741412200572131;0.733268972988687;0.723814714235551;0.715463966311715;0.706479702341626;0.699900943247313;0.699483333194060;0.692509156313557;0.685917182303197;0.685985027810305;0.685765637022556;0.686542308796015;0.688118919901806;0.689076283530952;0.688890928448431;0.690230886665699;0.689355605637872;0.687115767720783;0.689083144685052;0.685148154899363;0.678221621989193;0.677242134191137;0.673935118463337;0.672233829307560;0.669329561544367;0.675573103060171;0.671448264626192;0.672679620708604;0.671784883826899;0.674765125509996;0.675221593145399;0.679675755892588;0.682857045515956;0.686865667877459;0.692985131684618;0.698208895659598;0.701623522222523;0.707606121940696;0.713252687804821;0.715388970237497;0.718709690151823;0.723025346639569;0.725211931098103;0.735446537486175;0.745584388875806;0.751950520917171;0.766289117725776;0.778712996643649;0.789370387879042;0.796939792113066;0.808282644258781;0.815003415533987;0.820634360803063;0.825376288669120;0.829905672770534;0.832306372640420;0.832561779558553;0.832509882297670;0.829182792838177;0.826478704628147;0.820845198391207;0.819681464719523;0.824549187422759;0.825908464971409;0.830967187543189;0.840179182699465;0.844032464376710;0.852465092955246;0.857329635746143;0.861886532028097;0.868809542380653;0.871478672079630;0.876599118208260;0.879496702262145;0.880290263236863;0.882058239015747;0.878321874600822;0.876881723646334;0.870134028057804;0.871324909421719;0.874685005940079;0.874238151337783;0.880353618955498;0.888099967597934;0.887595010341115;0.895119805145770;0.896072620135674;0.902271265575609;0.908451248982346;0.915102579094470;0.918450962801193;0.919972064952835;0.920326313006943;0.920837874691293;0.918877152741850;0.915995655539794;0.912340627906538;0.914423321946290;0.912166542497186;0.916331632218601;0.921939718510037;0.930376596832094;0.936693633386107;0.946107943959139;0.953541312990931;0.957774147495852;0.960527812375281;0.963730861567031;0.966422379078937;0.962469905976144;0.960570837402679;0.959721047241204;0.951083686409186;0.940126233291494;0.933193488905816;0.925974866978174;0.917375810060297;0.913508913716739;0.910417193897375;0.905591835153974;0.904790396276472;0.903099178718697;0.899041221752364;0.894661820977455;0.888992556756144;0.880441225084608;0.878501245676245;0.865799139056133;0.858115950545159;0.846441721648003;0.835931744121521;0.824381245792699;0.812537173784491;0.800790461199580;0.788461768431087;0.777576915207510;0.770057174700999;0.760589989470687;0.754001921897564;0.745764750005198;0.738025669740748;0.735900185214951;0.728636426640817;0.721817674796908;0.720088459948924;0.709796210140190;0.706878120776369;0.701308607663787;0.694931784116045;0.690410331324423;0.686643518596416;0.677961423912419;0.673151159569813;0.668481108800645;0.668589050456873;0.667644114835779;0.662751146295325;0.665926914099452;0.664927526425741;0.661634447150288;0.660788189288451;0.663545073443244;0.656172405713715;0.655090240983543;0.649334450024314;0.647000980233178;0.644759934143302;0.637579084777690;0.633955521604783;0.631598588098687;0.627653627881448;0.624452687271115;0.624912307124595;0.620523209986628;0.618511229507080;0.618433523104110;0.618144067893752;0.610138363882774;0.607184337712320;0.602920095005118;0.600507802473163;0.593378723752710;0.591180010264379;0.587931492107216;0.582138853387890;0.579568309881971;0.576043663517555;0.577058708494577;0.574002521748555;0.571143288157019;0.570150287831299;0.569033740426464;0.567630508961478;0.568020024044409;0.565905467153481;0.563317785923679;0.556876158141608;0.555060724857247;0.548634042389865;0.548118679061404;0.540964093615691;0.536039600117669;0.532147714592134;0.528182601983416;0.525136211172957;0.521861247439729;0.520398264197364;0.519300266890803;0.517059547757375;0.516498854390400;0.520012604781964;0.517184066551660;0.514547737850055;0.511732776962881;0.510972253913000;0.509352797511662;0.511124403268907;0.509889993847131;0.509549408973866;0.511351654455470;0.512421093832101;0.515075807968731;0.518670177429331;0.523211749783768;0.526920752414897;0.530828050776345;0.531528451236777;0.537372170697080;0.536421446760115;0.537628513265411;0.535062195824959;0.531194573569791;0.529970675668874;0.526662780812082;0.523887148741597;0.519839985385608;0.513088529762027;0.508209068751183;0.503776678966804;0.498395027432165;0.493461153293609;0.491176244687925;0.487161421833746;0.482364292643349;0.480779675794615;0.475186682886213;0.471560544842068;0.464923980703952;0.456786469236230;0.449644947157546;0.443161065589621;0.436823467962408;0.426390058129111;0.418985773320597;0.411333009435694;0.402582478138918;0.394165285981186;0.386418525351673;0.380896119886430;0.374677114773172;0.368458781617572;0.361639955208787;0.351680597949691;0.348495433109395;0.339614767015865;0.330208669816209;0.324379476453202;0.318556712576515;0.311691089020250;0.304836146621461;0.301276073357900;0.293535223809443;0.288650023718454;0.281720711859373;0.276498895792566;0.272830228764284;0.265268593738926;0.262983304397356;0.253804072363153;0.249735121229630;0.245243302207341;0.236465279126311;0.230548461600776;0.227206109359835;0.223771552285249;0.218355429701505;0.212404711452937;0.209953347959127;0.204635336995819;0.202520431186990;0.198971339951345;0.196972812774561;0.196882421028144;0.192909029613888;0.190022669756142;0.189483174824019;0.189229357946804;0.188064848618885;0.185647814706650;0.183962525399404;0.180279189794089;0.178147720986490;0.175639518236792;0.173639446944909;0.172413978561511;0.168289516303052;0.165466357321078;0.162048559279882;0.159568626719280;0.158237342286622;0.153861584603595;0.151196132451837;0.149308164214875;0.148287580672569;0.145702645444429;0.143566330929757;0.141496105724508;0.138108239798421;0.135734692605578;0.133529300554738;0.131700846880369;0.129693676416072;0.127290783036855;0.124394558843743;0.121838848416465;0.120087500288782;0.117619273958622;0.114430236907572;0.112885861661766;0.110353086863347;0.109965223445603;0.108120491777648;0.107522907856754;0.105730419824197;0.103929645327367;0.103255064018304;0.102230395320315;0.101375559462176;0.100916126725830;0.100556899472107;0.0991684536191048;0.0983743140926399;0.0979786463607077;0.0964038049477832;0.0946017263777383;0.0939418431426439;0.0920605320212569;0.0904089002377747;0.0895740798580850;0.0885847502528355;0.0858603866809865;0.0846870843896897;0.0819643227183197;0.0799531951343867;0.0779370303010860;0.0761380732852325;0.0738040902972943;0.0714200856807560;0.0696334421958397;0.0675624178680178;0.0655438229078862;0.0639970603681591;0.0619919296977957;0.0600329685934550;0.0583436479852316;0.0571824221434260;0.0560444284617191;0.0545629678923717;0.0534018604475068;0.0519080954713474;0.0506064809128581;0.0497988893845122;0.0493446758993710;0.0486236186883574;0.0484907002630339;0.0480960795080576;0.0475304155028093;0.0477064106140954;0.0473858636090382;0.0470108407904672;0.0468048018683524;0.0463117472026739;0.0460349851268254;0.0456773724689693;0.0456369155424983;0.0450245896242755;0.0445684982709020]; +expected = [1;625;974;1336]; + +actual = CutWord(curve, maxStep, minStep, iterNum, pointNum); + +assert(isequal(actual, expected)) + +%% Test 5: Vina +curve = [0.0599006937502175;0.0595873132482415;0.0590372533501973;0.0582198288326608;0.0571386333391857;0.0558058622223526;0.0542334631148812;0.0524542594765985;0.0505036077112371;0.0484675337953856;0.0464419007612177;0.0443701737663017;0.0420591334754999;0.0395142682439793;0.0370860894736881;0.0349943292119592;0.0329402135275181;0.0308934726017174;0.0290442861959164;0.0274192743779565;0.0261369650379558;0.0252187345590049;0.0245021848315511;0.0240098509246660;0.0236564163868865;0.0226481260784770;0.0213430951464747;0.0232277908592770;0.0256131286013315;0.0260686105728366;0.0238354461813505;0.0228780301211021;0.0262520836948171;0.0286088416508674;0.0294119352101940;0.0301813931420075;0.0335462019556503;0.0373513489630748;0.0407518339645732;0.0439389067583662;0.0474579057440646;0.0512956294644613;0.0559519492216396;0.0607012312339678;0.0655084106099964;0.0706802482271198;0.0762407852073845;0.0820853846764532;0.0874935891992739;0.0923053062172591;0.0965385760582503;0.100644790954229;0.104422240027491;0.108427816537878;0.113064843706241;0.117336166763974;0.120333450476894;0.121610896484092;0.121915459715962;0.123613666052886;0.124474138201420;0.124279709970319;0.124415647864864;0.124353912888880;0.123513717900406;0.122253553797440;0.121232387001544;0.120514791691184;0.119890322586833;0.118838690032284;0.117676753378826;0.116649104118329;0.115969392751392;0.116042536165635;0.115978780470023;0.115026925987621;0.113592754480176;0.116367427501398;0.119937052084764;0.121429763924363;0.120502653051101;0.121258797622004;0.124258141315356;0.126097356773082;0.127170375340050;0.128423513965486;0.130613039094363;0.133163313741805;0.134959906950328;0.135274728953513;0.134426232633935;0.134968862482830;0.138348855399566;0.140333839572514;0.141287858382826;0.141870834083143;0.143646742112311;0.147856738156483;0.153269123800093;0.159545536121849;0.165220703078215;0.170598015494141;0.176720301427332;0.184004358909540;0.190119061587675;0.193930682045094;0.195078065666859;0.197870189710413;0.201362774579538;0.202400322181054;0.202533548529989;0.204460028782564;0.204906658360500;0.204997286281118;0.204149911921409;0.201825461843133;0.199476717769520;0.199805952039223;0.201451510005520;0.202565011234975;0.202903078984341;0.202049618383382;0.202373919164979;0.205236205072636;0.209463071090090;0.214415099611980;0.219530194175643;0.224419786302751;0.232272777068526;0.239481704597347;0.243522911675821;0.245635188584091;0.247519357777763;0.249782619473723;0.251996949346224;0.252933021522583;0.253926237407780;0.254414667307952;0.253782320890179;0.251325547383020;0.247315143566016;0.246876711096614;0.246515182091432;0.243628754134985;0.239140406185704;0.234595847975103;0.231862264878190;0.230210099093719;0.229279290430345;0.229527933567509;0.229670994589811;0.230338882582687;0.231664127981654;0.234952311786648;0.237718035970303;0.239895559355171;0.241148244903717;0.242377637802895;0.243553236952674;0.244780142013885;0.245044775440072;0.244561254991657;0.243119588374837;0.241036838116362;0.236840877931292;0.231811121967149;0.228841067783991;0.226308200064297;0.222549564990338;0.215980258531397;0.206912590452607;0.198877528510963;0.194833488181052;0.190560783637502;0.186551478725418;0.183945773884518;0.182304896664914;0.181525562381362;0.181897028125854;0.181993397502069;0.181587864631589;0.181944678579860;0.182369956197047;0.182611716038259;0.183102234239246;0.183139980088655;0.183090340289380;0.182544671523368;0.181325160648435;0.179056736274294;0.176047629309795;0.174212698650256;0.173824824099457;0.173363164739276;0.170213219084572;0.165439294335379;0.163759560027822;0.164026758214845;0.165517062467188;0.166690422512145;0.168827311298576;0.171661966632219;0.173861129479352;0.175127594147778;0.176664915195551;0.178011814296393;0.179718923807397;0.181142829760831;0.182020659071287;0.182500386163355;0.182410571882363;0.182265937706465;0.180704486093589;0.179277475408265;0.176848174287904;0.175061470198570;0.174897881516761;0.173848848176873;0.171799083731534;0.169578876510057;0.166460589432189;0.164938536810714;0.164252572146584;0.165385292957112;0.168049946709827;0.171219162306686;0.172803139679903;0.174696516358292;0.176547651362126;0.179041189175449;0.181643220802091;0.183656693120273;0.185773353971585;0.187427421223888;0.188108404698900;0.187847603256115;0.187813757205975;0.187064769624292;0.186536199933793;0.186510052057045;0.185604098843826;0.185522811476086;0.185577426176203;0.185239251910642;0.184635959195957;0.184837321749546;0.186605764904063;0.191582978320601;0.196298028229736;0.200496986996247;0.201568478194561;0.202429224011070;0.204663187021261;0.207433247293019;0.209330326610848;0.210401713950990;0.211815118084429;0.212662731986830;0.213166338695403;0.213167517946147;0.212486660716335;0.211226046162137;0.210508929600279;0.209805828336228;0.210560295540314;0.211706943856292;0.213632478714494;0.215110590178415;0.215080917093552;0.214421236416790;0.218703490482805;0.224690565213542;0.228944892795813;0.231046214542539;0.234028557900479;0.238889986497248;0.242098941725531;0.245293928227866;0.248471226337125;0.250413090886672;0.252470782020680;0.253361935682000;0.253392238245807;0.252318961688700;0.251013258363374;0.249791510505678;0.248610133395893;0.249121051234749;0.248241283021541;0.249205054621857;0.251121631879502;0.251784622245438;0.253993776501404;0.262614515379267;0.271459641436741;0.274727997132134;0.276373250750958;0.280164539087870;0.286824511993680;0.291400502046964;0.296684476952773;0.302212733456534;0.306401310644295;0.310544847593948;0.314484356554241;0.318208426169001;0.322298654275563;0.325979196238637;0.330203444556964;0.336873299860620;0.344640490544404;0.353347441809617;0.360909416749607;0.367177016228196;0.374279292154114;0.389076024355845;0.404189228923715;0.412945655663549;0.418685133729110;0.426881240173051;0.437428891338728;0.445302310955975;0.452605449396075;0.460552511720983;0.465309439455285;0.470165471650438;0.475000664040918;0.480185505837813;0.484326976819474;0.489868768128989;0.496174200833348;0.503047001025286;0.511667214162615;0.522800395107182;0.533120615824833;0.540106457408913;0.551255508592611;0.567449044222656;0.581132876639335;0.589095135075039;0.599080779338524;0.612291567124088;0.622125303215554;0.632342049688571;0.641506812950792;0.648193259949796;0.653197928661258;0.658187276728888;0.662972082012471;0.665616016201787;0.668924186351317;0.672209754468515;0.676992587671923;0.680681325392053;0.685688195194151;0.686996646450229;0.691960133871087;0.699611636455493;0.709763483596113;0.718753518158816;0.726881355294518;0.732958443995006;0.743195001577207;0.753793427062281;0.761515587303585;0.769868674767636;0.777724327042135;0.783281503995479;0.785253621083891;0.789238278695910;0.791974598789306;0.794775966578167;0.796802644570843;0.799440621462075;0.802734564369676;0.807338570086174;0.810828153757120;0.814082231225568;0.822333960530153;0.834323743738670;0.844411596409106;0.852571663846507;0.864326490178553;0.877080301447866;0.887151883925199;0.898417125199609;0.908102034035957;0.913467157138845;0.917879409908894;0.919814037016128;0.919363321968147;0.917750860930241;0.911785243167485;0.905654732491099;0.900025934169287;0.893655867589813;0.885802893695908;0.877477052809359;0.873299974860663;0.870325749726602;0.866922595974545;0.865905957420070;0.866911073323455;0.869872891450831;0.873778206046618;0.880867250392215;0.888090153393808;0.892120207673778;0.895503478130205;0.898641055487878;0.899712802395786;0.898919643706282;0.896584893376895;0.892040082872288;0.886008579930172;0.879780287936564;0.872643978201720;0.865514145739250;0.857051285927591;0.851206096633519;0.845408834898793;0.839867601174638;0.834171406318899;0.832916731757905;0.834229839790040;0.829800889971719;0.827295346464120;0.830333929267531;0.831083647040950;0.829791426495522;0.829875432326990;0.828023881002716;0.824290570217192;0.820964103335922;0.814075702052265;0.806941629992153;0.801901181756229;0.796143722591230;0.790166525305499;0.786918100549877;0.785691651931047;0.784740049117180;0.786707889566987;0.787851500349544;0.794548576669151;0.799177031302507;0.804128702875077;0.810224641812401;0.816615461237348;0.821371470626326;0.826274215851164;0.829039716029542;0.829103210708936;0.828886029475977;0.825998418529721;0.820221118659642;0.813583583397093;0.806884341722379;0.798456256862782;0.790433337864592;0.782736687956153;0.775118822093689;0.768125846765605;0.763920720669713;0.760623274734382;0.757542879098038;0.754920238491762;0.754939055171674;0.754254381516732;0.753517941248311;0.754995099456014;0.755955634250601;0.755616730761666;0.754178580784962;0.753489096664548;0.750827791126785;0.746903906463150;0.741406666584626;0.735869323246444;0.730422507315067;0.725160375004013;0.719452706585793;0.713754026572644;0.708587250848617;0.709992190366291;0.706764666834482;0.702948414837411;0.699566195994919;0.703217068904405;0.703369394575636;0.701891664271399;0.700529954687738;0.702479455771775;0.701905701725964;0.699767362943629;0.695898336694419;0.692301566781585;0.687227924478104;0.681151054689296;0.674502691878165;0.667509183188444;0.659345435333967;0.651220685300549;0.642820297590341;0.637416845391787;0.635486225708287;0.634153270629540;0.630136942770151;0.627625478257212;0.628689458172149;0.636095694681441;0.636410411698425;0.637504533140885;0.639738194018065;0.644644678717749;0.646456538366769;0.648020593191091;0.647712390715953;0.647079726969217;0.645228258625986;0.642421468415473;0.639042954463109;0.633912787995646;0.627243789183848;0.620535049035817;0.613542541772915;0.610410312010757;0.610725911951499;0.610673282510478;0.608637792802061;0.605388402729340;0.605363113743153;0.614269433600356;0.615758798053526;0.614812163009779;0.614005667405642;0.618192446986060;0.619483104999341;0.620317166302703;0.618280242770371;0.614622627010522;0.611230419469212;0.607632615160552;0.603307883192934;0.594272534044221;0.585665812370496;0.577564180655765;0.569497006037808;0.565978163931851;0.565921838092332;0.566805354883097;0.565255291072474;0.561915875549127;0.566539680354511;0.575279693078372;0.577601529531397;0.579020862058044;0.580453369465156;0.586722122283232;0.590777271979533;0.594640933438479;0.596235696321056;0.596926288636150;0.598059283648356;0.598285359548315;0.595306051803645;0.589507580688325;0.584863674524766;0.580433188069247;0.576186818971768;0.575896508072993;0.579115202605598;0.582269361667436;0.579714869025026;0.575707084155502;0.577942402137582;0.589540768313270;0.592958867989320;0.595910315819092;0.596952003452368;0.601533078704128;0.607796478665991;0.613714891165694;0.615856439558462;0.615475336606988;0.616407781843461;0.617907475282062;0.614997377051310;0.610039612272466;0.605379519585823;0.600674181941098;0.596933182609274;0.595392117203988;0.598374826359014;0.601651995176899;0.603064921172036;0.603376630399982;0.598512275878712;0.609369512342913;0.617192953373791;0.620946901207837;0.620698062314885;0.621825555915946;0.627049765284015;0.631903956533100;0.633037163887257;0.632042841785827;0.631687349479298;0.632070978692133;0.628164611404182;0.622323672922937;0.615359036066517;0.608021923019785;0.601143973617260;0.597419305033401;0.599016492501333;0.601588199278045;0.602939084076530;0.600233951382495;0.591459460093839;0.598408486313172;0.610891163175724;0.617127386525205;0.615386983377832;0.613706053759726;0.619868121537147;0.625843414928172;0.628806678336890;0.628806383610497;0.627512057323717;0.630011604313537;0.630472841694489;0.626666260741066;0.619202559059323;0.610130035546074;0.600758864115993;0.593422793644428;0.592947285769484;0.594831171791998;0.598154507542005;0.596660615163650;0.588578034968015;0.581469337354393;0.594318851957133;0.605631599770279;0.605771209974579;0.604337706255006;0.602673427335283;0.607727525656830;0.613396637730510;0.616456307604025;0.613704510308888;0.612533953527352;0.614081046042791;0.613253602770865;0.607649861593790;0.598188420719002;0.585979054019086;0.572998350791797;0.567162225398562;0.565978334236984;0.566728236974495;0.566196636685154;0.559451319946215;0.548475871255931;0.540974320907293;0.553673580344127;0.563946790063944;0.569569451224054;0.573032831659897;0.572967702968682;0.575504056738869;0.583937092872095;0.588512169503695;0.586569328319494;0.585007880436060;0.586589698969058;0.585901467003103;0.582258214964633;0.574175166698735;0.561629892143001;0.545620260314155;0.537524732787612;0.533061351510454;0.529089836430727;0.520567910386381;0.506595232745349;0.495052845442274;0.487864892058894;0.491485449404983;0.495781211520557;0.499405171477825;0.498843769009422;0.499825571863356;0.501547534384390;0.503362684064392;0.506736774132620;0.510266216741759;0.510812714142537;0.510678413200088;0.511379038889574;0.511133487088237;0.507509102178793;0.499682479243137;0.488519167073130;0.474658543160681;0.472007644345689;0.469103568464079;0.462826980116001;0.447810906084233;0.429797619787992;0.414080751768852;0.406741195929246;0.408256481882554;0.409610037720126;0.410373693829059;0.411614034960521;0.413309474364187;0.415373973738357;0.417859137649425;0.419236813784485;0.419837769545180;0.420255231120439;0.420123551098447;0.420492056120408;0.419946949199337;0.417236793513266;0.412763669811590;0.406706036973138;0.397831695408531;0.394410421683741;0.391083381550543;0.386301790280054;0.375211669646301;0.361085640919812;0.348094201408731;0.337346640525547;0.332095796638850;0.326006914892872;0.320504240313944;0.316710022108961;0.316434354346641;0.314878017147637;0.313446012135733;0.316843466946053;0.322558633136960;0.327323225381966;0.328393545843236;0.326964482407121;0.325406183688275;0.324088744304636;0.323721628880598;0.322927604829122;0.320483317455290;0.318623361931916;0.315855685604013;0.312750570157784;0.309808224141223;0.301333512907347;0.294140807997833;0.285412429768314;0.278921514295686;0.277661364974522;0.274454762867006;0.271538703794692;0.272453408245602;0.273463803863837;0.274278086478720;0.275275952395264;0.276200608663244;0.285060257347706;0.293167117845844;0.298473368891767;0.301664025921373;0.302953944436718;0.304732985117393;0.307671459099947;0.311768469349094;0.313913614460783;0.316608124389897;0.319157955430960;0.321813254375424;0.325519388732983;0.329990165473766;0.333058978221554;0.333537575051668;0.333980761865347;0.336652818884855;0.337919520478226;0.339147919257741;0.343316225303752;0.347397438850922;0.349880839126666;0.354786958185209;0.356198278844140;0.358908558250644;0.361248778922921;0.369706459895825;0.373290206589311;0.377412414439555;0.380313895603076;0.378987199444613;0.379555992701727;0.379464637345618;0.378616311997846;0.377299499959230;0.374055551551272;0.371127097722135;0.368502254267121;0.367550355045483;0.365654403763919;0.363511014608054;0.360673197876613;0.359353157219963;0.361406482408031;0.362211036037846;0.364286253504344;0.367903409164167;0.370749509541191;0.373901203491775;0.375571255921580;0.375339858048405;0.377356774353990;0.375712099475338;0.378306630945882;0.382752256009792;0.386467742953539;0.386552051145948;0.386739362705573;0.383160076460374;0.382079387859123;0.379670087750805;0.374312385832281;0.369732324182027;0.365110330201927;0.359931468934359;0.353720000339354;0.348880698251775;0.340821693667856;0.335542300127335;0.331371881720186;0.329354745392738;0.328263204232965;0.329432493660507;0.332504831526471;0.336875486949257;0.340570830773297;0.345715137046056;0.352019381193104;0.360124470444266;0.367991566755221;0.375600039011338;0.382476697240399;0.392120935087326;0.394893753938949;0.398439598275256;0.400161026493578;0.399769228528419;0.399025619028970;0.396783807423296;0.393227266909166;0.392191705219889;0.386319770666485;0.380018661866575;0.376037222193733;0.367743468388139;0.361998537328232;0.357048750327990;0.352567011809797;0.349106512877902;0.346152707020092;0.345743619812708;0.345064263996655;0.345859588433493;0.345560480047220;0.346944442317710;0.351011761984931;0.355484071739949;0.360670661160679;0.365026108931104;0.368124215334726;0.375572755130426;0.375541589684071;0.377486907986070;0.377328939133619;0.374857731110658;0.374501272273789;0.371678215120368;0.365125318157407;0.363477337428446;0.358605570342866;0.350661554965439;0.343962964990547;0.337809047063102;0.331907802391694;0.327829481456772;0.323896615866449;0.321555640139814;0.321615943591693;0.321669723753397;0.324536251463353;0.326925305582369;0.332024003777838;0.335317523152018;0.341217059810622;0.348267223353672;0.353793389357016;0.359776706942125;0.366696179200226;0.373823391123680;0.377571275220435;0.381341189315398;0.382859035821795;0.382851066150006;0.383412721381069;0.379970905540980;0.375989806939519;0.374188296207351;0.367204383951552;0.361385415004177;0.356488238629845;0.348493469663447;0.343269644122775;0.335632755111642;0.329355282140710;0.322325817992589;0.317745138386661;0.315074954271299;0.312558705167211;0.311223087486748;0.310408794756044;0.312528808590744;0.315570697058408;0.318841678943328;0.322581774106318;0.324451940919338;0.329595835813164;0.332105681933777;0.332260143865184;0.333200211255274;0.331898565496744;0.330393912172316;0.330696867178158;0.327909181000215;0.322579820694327;0.322007536977473;0.316564981085732;0.314098906603516;0.310047918880531;0.305000386367516;0.302579482103431;0.299743358014451;0.295092432552762;0.292315029647066;0.291032057585707;0.290363647440452;0.291430909655398;0.292360301621169;0.293782741366987;0.296698429286766;0.299559497862681;0.303180617511615;0.307235645956148;0.310222024660242;0.316565128203605;0.317305117400109;0.320723156147781;0.319426865187804;0.316890609981673;0.317283973798463;0.315625726362873;0.311860850369204;0.307476670895034;0.303573470916913;0.300037755161573;0.294828299504857;0.287828141571178;0.282416724345149;0.278581573350187;0.273154719093669;0.267999343423857;0.266507491549296;0.265152160893515;0.264928153696630;0.266611489357275;0.268599783542446;0.271945020345966;0.274684321443668;0.278620266064580;0.282448034182257;0.286390998752877;0.289563100175910;0.296498740432729;0.297077672129414;0.295932033544961;0.298538807035770;0.295872138576188;0.295610345154560;0.293425607617221;0.290081256100588;0.287569503787100;0.284103249754041;0.279894441108828;0.275499002276518;0.269709135121364;0.265519643716394;0.262666735074510;0.259391544852685;0.255558764380079;0.255811939570760;0.255338664122126;0.255469652054763;0.257265087817257;0.260378429338493;0.260972288925997;0.264382511384852;0.268507161256254;0.272439724976159;0.276147112840676;0.279832691580268;0.286209691245473;0.288830202730553;0.290435132716645;0.293040246790163;0.294493136377950;0.291116385383443;0.291386344077373;0.286700824684109;0.286445807137665;0.281497322140402;0.277707159285854;0.271445132296217;0.265688768874666;0.260658084766080;0.257524744277292;0.252578452771671;0.249152236110876;0.248556150451106;0.246414542244384;0.247945873070261;0.249883497883477;0.250668982707089;0.253404172013840;0.256805487988349;0.260660120092204;0.264749418428111;0.268506076858711;0.271821046552884;0.274430841735847;0.278483937296562;0.279702460052884;0.280027445570636;0.281929507598437;0.280665989194623;0.276268686487796;0.272557740780273;0.269490895264143;0.266007251009118;0.258911114721338;0.253365862599217;0.246679961890778;0.239887425858487;0.233275776143673;0.228043583674771;0.223765439850125;0.219130703156986;0.216919853276993;0.216477343132361;0.215369551260918;0.215358432364271;0.217721739963382;0.219804129080161;0.223616424174656;0.228585131860101;0.233753883859763;0.238741512662463;0.244244233739515;0.249323934228647;0.253944309667497;0.258053800238326;0.262315034747334;0.264001423547661;0.265417264680536;0.264923375622011;0.262587816471820;0.260529727499494;0.258258337150807;0.255879576190280;0.251593754597208;0.244910838591317;0.239738266522368;0.233856526183582;0.228637775393136;0.222668954046186;0.218184347099153;0.213698575238826;0.208877451348557;0.205239851900072;0.200841036787666;0.198236270180247;0.196596809974013;0.195204181850555;0.193401364666076;0.192022231757475;0.190987833044620;0.190471647029132;0.190104793893290;0.189066101139724;0.188226413557382;0.187661549411762;0.187448184875897;0.185322543030603;0.184328964420385;0.180115778623981;0.178970068443245;0.175246132723812;0.175121120965318;0.171093991661543;0.166198932983431;0.163180361717001;0.160010161552676;0.155289644393435;0.151714786649060;0.148402867688760;0.143762877807426;0.140445009218636;0.137220026402160;0.134420517373124;0.132619477472731;0.131372385049974;0.130865446633169;0.129744953080597;0.130098289381015;0.129670056985918;0.130106747792480;0.130113447402229;0.130237730817113;0.131441525043266;0.129871010140959;0.130240937041550;0.129728301860885;0.129095048531676;0.126768189064243;0.126583314179580;0.126761665759699;0.126277858818557;0.124816435589743;0.124656770772871;0.122816905304745;0.121201578501606;0.119268992748903;0.118135600913497;0.116860337973066;0.115380783156966;0.113680224600036;0.112491851011001;0.111079981863401;0.109942387334824;0.109295349439234;0.108378518834813;0.107677672471898;0.106851009528653;0.106525307821849;0.105983773635252;0.105379710689463;0.105773586352865;0.104515454117286;0.104495377994051;0.103618305791651;0.102401181102331;0.101430372047304;0.100129174693419;0.0986726340839637;0.0973765395624573;0.0963247837558435;0.0954849046578596;0.0938995542562295;0.0925917211127755;0.0912094619144498;0.0896834972872826;0.0869187359654934;0.0857112511450821;0.0838574752556261;0.0826237768302282;0.0811486100715447;0.0799863393956897;0.0787053948667404;0.0775955359127453;0.0766738567789420;0.0756552298973539;0.0749704831072089;0.0742126583418306;0.0738025086775384;0.0738335873011849;0.0735063285088156;0.0731141085984563;0.0725226018996740;0.0722731519716840;0.0711857514392092;0.0708010237264620;0.0700939565772587;0.0691847400374599;0.0685167373284206;0.0676529094428742;0.0674920950656928;0.0660811697352178;0.0650176471897555;0.0646592864697570;0.0626657940576239;0.0622409859965859;0.0615333980160716;0.0605432976950626;0.0600160169172287;0.0594305327113202;0.0588265150364629;0.0581535352674131;0.0576644537458781;0.0568549208584965;0.0563157241587027]; +expected = [1;197;553;765;1219]; + +actual = CutWord(curve, maxStep, minStep, iterNum, pointNum); + +assert(isequal(actual, expected)) \ No newline at end of file