Заслуженный участник |
|
30/10/10 1481 Ереван(3-й участок)
|
Странно, у меня при значении harmK1=50, harmK2=60 выдается: (результат1)
Код: start: x1=0.300000, x2=4.000000, x3=1.400000, x4=6.800000 0: x1=0.326972, x2=4.062934, x3=3.996161, x4=5.785186 1: x1=0.379885, x2=4.115687, x3=6.580774, x4=4.765490 2: x1=0.458406, x2=4.158260, x3=9.110708, x4=3.750733 3: x1=0.561775, x2=4.190751, x3=11.543622, x4=2.750567 4: x1=0.688818, x2=4.213352, x3=13.838613, x4=1.774346 5: x1=0.837958, x2=4.226347, x3=15.956854, x4=0.830980 6: x1=1.007244, x2=4.230109, x3=17.862192, x4=-0.071192 7: x1=1.194381, x2=4.225087, x3=19.521704, x4=-0.924522 8: x1=1.396761, x2=4.211804, x3=20.906210, x4=-1.722165 9: x1=1.611504, x2=4.190849, x3=21.990723, x4=-2.458176 10: x1=1.835506, x2=4.162863, x3=22.754837, x4=-3.127597 11: x1=2.065480, x2=4.128532, x3=23.183046, x4=-3.726523 12: x1=2.298011, x2=4.088577, x3=23.264984, x4=-4.252154 13: x1=2.529607, x2=4.043739, x3=22.995587, x4=-4.702836 14: x1=2.756751, x2=3.994772, x3=22.375182, x4=-5.078074 15: x1=2.975958, x2=3.942427, x3=21.409476, x4=-5.378535 16: x1=3.183825, x2=3.887445, x3=20.109481, x4=-5.606031 17: x1=3.377086, x2=3.830541, x3=18.491345, x4=-5.763482 18: x1=3.552660, x2=3.772396, x3=16.576111, x4=-5.854867 19: x1=3.707702, x2=3.713647, x3=14.389394, x4=-5.885152 20: x1=3.839641, x2=3.654877, x3=11.960997, x4=-5.860211 21: x1=3.946227, x2=3.596605, x3=9.324455, x4=-5.786725 22: x1=4.025558, x2=3.539280, x3=6.516525, x4=-5.672075 23: x1=4.076117, x2=3.483274, x3=3.576624, x4=-5.524221 24: x1=4.096789, x2=3.428878, x3=0.546233, x4=-5.351573 25: x1=4.086883, x2=3.376297, x3=-2.531741, x4=-5.162855 26: x1=4.046141, x2=3.325645, x3=-5.613616, x4=-4.966964 27: x1=3.974743, x2=3.276951, x3=-8.655602, x4=-4.772826 28: x1=3.873306, x2=3.230153, x3=-11.614472, x4=-4.589257 29: x1=3.742871, x2=3.185102, x3=-14.448219, x4=-4.424814 30: x1=3.584893, x2=3.141566, x3=-17.116695, x4=-4.287665 31: x1=3.401215, x2=3.099233, x3=-19.582230, x4=-4.185449 32: x1=3.194041, x2=3.057717, x3=-21.810199, x4=-4.125160 33: x1=2.965907, x2=3.016569, x3=-23.769556, x4=-4.113032 34: x1=2.719637, x2=2.975278, x3=-25.433303, x4=-4.154432 35: x1=2.458303, x2=2.933286, x3=-26.778903, x4=-4.253780 36: x1=2.185180, x2=2.889997, x3=-27.788620, x4=-4.414469 37: x1=1.903694, x2=2.844785, x3=-28.449793, x4=-4.638813 38: x1=1.617372, x2=2.797005, x3=-28.755023, x4=-4.927999 39: x1=1.329788, x2=2.746008, x3=-28.702284, x4=-5.282071 40: x1=1.044510, x2=2.691150, x3=-28.294952, x4=-5.699921 41: x1=0.765043, x2=2.631804, x3=-27.541750, x4=-6.179301 42: x1=0.494783, x2=2.567370, x3=-26.456612, x4=-6.716854 43: x1=0.236956, x2=2.497288, x3=-25.058466, x4=-7.308158 44: x1=-0.005421, x2=2.421046, x3=-23.370940, x4=-7.947795 45: x1=-0.229590, x2=2.338192, x3=-21.422000, x4=-8.629426 46: x1=-0.433095, x2=2.248341, x3=-19.243514, x4=-9.345886 47: x1=-0.613812, x2=2.151184, x3=-16.870764, x4=-10.089289 48: x1=-0.769989, x2=2.046493, x3=-14.341902, x4=-10.851146 49: x1=-0.900264, x2=1.934129, x3=-11.697361, x4=-11.622496 50: x1=-1.003691, x2=1.814043, x3=-8.979236, x4=-12.394032 51: x1=-1.079747, x2=1.686280, x3=-6.230631, x4=-13.156251 52: x1=-1.128346, x2=1.550981, x3=-3.494999, x4=-13.899589 53: x1=-1.149834, x2=1.408382, x3=-0.815476, x4=-14.614570 54: x1=-1.144984, x2=1.258815, x3=1.765786, x4=-15.291948 55: x1=-1.114982, x2=1.102698, x3=4.208269, x4=-15.922847 56: x1=-1.061409, x2=0.940541, x3=6.473704, x4=-16.498896 57: x1=-0.986217, x2=0.772929, x3=8.526668, x4=-17.012355 58: x1=-0.891692, x2=0.600526, x3=10.335122, x4=-17.456234 59: x1=-0.780424, x2=0.424057, x3=11.870907, x4=-17.824398 60: x1=-0.655263, x2=0.244308, x3=13.110176, x4=-18.111661 61: x1=-0.519274, x2=0.062108, x3=14.033760, x4=-18.313864 62: x1=-0.375689, x2=-0.121676, x3=14.627459, x4=-18.427942 63: x1=-0.227856, x2=-0.306150, x3=14.882268, x4=-18.451967 64: x1=-0.079187, x2=-0.490412, x3=14.794507, x4=-18.385180 65: x1=0.066896, x2=-0.673552, x3=14.365882, x4=-18.228000 66: x1=0.207016, x2=-0.854676, x3=13.603455, x4=-17.982025 67: x1=0.337892, x2=-1.032906, x3=12.519539, x4=-17.650000 68: x1=0.456392, x2=-1.207401, x3=11.131506, x4=-17.235783 69: x1=0.559581, x2=-1.377364, x3=9.461520, x4=-16.744283 70: x1=0.644770, x2=-1.542049, x3=7.536194, x4=-16.181386 71: x1=0.709555, x2=-1.700776, x3=5.386184, x4=-15.553872 72: x1=0.751858, x2=-1.852936, x3=3.045715, x4=-14.869305 73: x1=0.769958, x2=-1.997999, x3=0.552055, x4=-14.135924 74: x1=0.762520, x2=-2.135521, x3=-2.055060, x4=-13.362521 75: x1=0.728617, x2=-2.265146, x3=-4.734035, x4=-12.558302 76: x1=0.667742, x2=-2.386616, x3=-7.442057, x4=-11.732757 77: x1=0.579823, x2=-2.499763, x3=-10.135755, x4=-10.895508 78: x1=0.465219, x2=-2.604519, x3=-12.771868, x4=-10.056175 79: x1=0.324720, x2=-2.700911, x3=-15.307909, x4=-9.224224 80: x1=0.159532, x2=-2.789059, x3=-17.702820, x4=-8.408829 81: x1=-0.028736, x2=-2.869172, x3=-19.917606, x4=-7.618734 82: x1=-0.238098, x2=-2.941545, x3=-21.915936, x4=-6.862125 83: x1=-0.466221, x2=-3.006551, x3=-23.664700, x4=-6.146505 84: x1=-0.710461, x2=-3.064634, x3=-25.134524, x4=-5.478587 85: x1=-0.967897, x2=-3.116302, x3=-26.300221, x4=-4.864196 86: x1=-1.235381, x2=-3.162113, x3=-27.141181, x4=-4.308178 87: x1=-1.509584, x2=-3.202673, x3=-27.641693, x4=-3.814341 88: x1=-1.787044, x2=-3.238617, x3=-27.791183, x4=-3.385392 89: x1=-2.064219, x2=-3.270602, x3=-27.584386, x4=-3.022908 90: x1=-2.337543, x2=-3.299298, x3=-27.021427, x4=-2.727314 91: x1=-2.603477, x2=-3.325370, x3=-26.107823, x4=-2.497881 92: x1=-2.858565, x2=-3.349470, x3=-24.854402, x4=-2.332746 93: x1=-3.099484, x2=-3.372229, x3=-23.277140, x4=-2.228947 94: x1=-3.323097, x2=-3.394241, x3=-21.396919, x4=-2.182469 95: x1=-3.526496, x2=-3.416053, x3=-19.239210, x4=-2.188319 96: x1=-3.707054, x2=-3.438162, x3=-16.833689, x4=-2.240605 97: x1=-3.862455, x2=-3.460998, x3=-14.213781, x4=-2.332631 98: x1=-3.990736, x2=-3.484923, x3=-11.416153, x4=-2.457013 99: x1=-4.090316, x2=-3.510220, x3=-8.480156, x4=-2.605792 тогда как при harmK1=0.1, harmK2=0.2 имеем (результат2)
Код: start: x1=0.300000, x2=4.000000, x3=1.400000, x4=6.800000 0: x1=0.314045, x2=4.067983, x3=1.408934, x4=6.796612 1: x1=0.328179, x2=4.135932, x3=1.417984, x4=6.793175 2: x1=0.342405, x2=4.203846, x3=1.427152, x4=6.789689 3: x1=0.356722, x2=4.271726, x3=1.436435, x4=6.786154 4: x1=0.371134, x2=4.339569, x3=1.445835, x4=6.782571 5: x1=0.385640, x2=4.407377, x3=1.455350, x4=6.778939 6: x1=0.400241, x2=4.475148, x3=1.464979, x4=6.775258 7: x1=0.414940, x2=4.542882, x3=1.474723, x4=6.771530 8: x1=0.429736, x2=4.610578, x3=1.484582, x4=6.767753 9: x1=0.444632, x2=4.678237, x3=1.494553, x4=6.763928 10: x1=0.459627, x2=4.745857, x3=1.504638, x4=6.760056 11: x1=0.474725, x2=4.813438, x3=1.514835, x4=6.756135 12: x1=0.489924, x2=4.880979, x3=1.525144, x4=6.752167 13: x1=0.505228, x2=4.948481, x3=1.535565, x4=6.748151 14: x1=0.520636, x2=5.015942, x3=1.546097, x4=6.744088 15: x1=0.536150, x2=5.083363, x3=1.556740, x4=6.739978 16: x1=0.551771, x2=5.150742, x3=1.567493, x4=6.735821 17: x1=0.567500, x2=5.218079, x3=1.578355, x4=6.731617 18: x1=0.583339, x2=5.285374, x3=1.589327, x4=6.727365 19: x1=0.599287, x2=5.352626, x3=1.600407, x4=6.723067 20: x1=0.615347, x2=5.419835, x3=1.611595, x4=6.718723 21: x1=0.631520, x2=5.487000, x3=1.622891, x4=6.714332 22: x1=0.647805, x2=5.554121, x3=1.634294, x4=6.709895 23: x1=0.664206, x2=5.621198, x3=1.645803, x4=6.705411 24: x1=0.680722, x2=5.688230, x3=1.657418, x4=6.700882 25: x1=0.697355, x2=5.755216, x3=1.669138, x4=6.696307 26: x1=0.714105, x2=5.822156, x3=1.680964, x4=6.691686 27: x1=0.730974, x2=5.889049, x3=1.692893, x4=6.687020 28: x1=0.747963, x2=5.955896, x3=1.704926, x4=6.682308 29: x1=0.765073, x2=6.022695, x3=1.717063, x4=6.677551 30: x1=0.782305, x2=6.089447, x3=1.729302, x4=6.672749 31: x1=0.799659, x2=6.156150, x3=1.741643, x4=6.667901 32: x1=0.817138, x2=6.222805, x3=1.754085, x4=6.663010 33: x1=0.834741, x2=6.289410, x3=1.766628, x4=6.658073 34: x1=0.852471, x2=6.355966, x3=1.779271, x4=6.653092 35: x1=0.870327, x2=6.422472, x3=1.792014, x4=6.648067 36: x1=0.888312, x2=6.488927, x3=1.804856, x4=6.642997 37: x1=0.906425, x2=6.555331, x3=1.817796, x4=6.637884 38: x1=0.924668, x2=6.621685, x3=1.830834, x4=6.632727 39: x1=0.943042, x2=6.687986, x3=1.843969, x4=6.627526 40: x1=0.961547, x2=6.754235, x3=1.857201, x4=6.622281 41: x1=0.980186, x2=6.820431, x3=1.870529, x4=6.616994 42: x1=0.998958, x2=6.886575, x3=1.883951, x4=6.611663 43: x1=1.017865, x2=6.952664, x3=1.897469, x4=6.606289 44: x1=1.036908, x2=7.018700, x3=1.911081, x4=6.600872 45: x1=1.056087, x2=7.084682, x3=1.924786, x4=6.595413 46: x1=1.075404, x2=7.150608, x3=1.938583, x4=6.589911 47: x1=1.094859, x2=7.216480, x3=1.952473, x4=6.584367 48: x1=1.114454, x2=7.282296, x3=1.966454, x4=6.578781 49: x1=1.134189, x2=7.348055, x3=1.980526, x4=6.573153 50: x1=1.154065, x2=7.413759, x3=1.994688, x4=6.567483 51: x1=1.174083, x2=7.479405, x3=2.008939, x4=6.561772 52: x1=1.194244, x2=7.544994, x3=2.023279, x4=6.556019 53: x1=1.214549, x2=7.610525, x3=2.037707, x4=6.550225 54: x1=1.234998, x2=7.675998, x3=2.052222, x4=6.544390 55: x1=1.255593, x2=7.741413, x3=2.066824, x4=6.538514 56: x1=1.276335, x2=7.806768, x3=2.081512, x4=6.532598 57: x1=1.297224, x2=7.872065, x3=2.096285, x4=6.526641 58: x1=1.318261, x2=7.937301, x3=2.111143, x4=6.520643 59: x1=1.339447, x2=8.002477, x3=2.126084, x4=6.514606 60: x1=1.360783, x2=8.067593, x3=2.141109, x4=6.508529 61: x1=1.382269, x2=8.132648, x3=2.156216, x4=6.502412 62: x1=1.403907, x2=8.197641, x3=2.171405, x4=6.496256 63: x1=1.425698, x2=8.262573, x3=2.186675, x4=6.490060 64: x1=1.447641, x2=8.327442, x3=2.202025, x4=6.483825 65: x1=1.469739, x2=8.392249, x3=2.217455, x4=6.477551 66: x1=1.491991, x2=8.456993, x3=2.232963, x4=6.471239 67: x1=1.514398, x2=8.521674, x3=2.248549, x4=6.464888 68: x1=1.536962, x2=8.586291, x3=2.264213, x4=6.458498 69: x1=1.559683, x2=8.650844, x3=2.279953, x4=6.452071 70: x1=1.582561, x2=8.715332, x3=2.295769, x4=6.445605 71: x1=1.605598, x2=8.779756, x3=2.311661, x4=6.439102 72: x1=1.628795, x2=8.844114, x3=2.327626, x4=6.432561 73: x1=1.652151, x2=8.908407, x3=2.343665, x4=6.425983 74: x1=1.675668, x2=8.972633, x3=2.359777, x4=6.419368 75: x1=1.699347, x2=9.036794, x3=2.375960, x4=6.412716 76: x1=1.723188, x2=9.100888, x3=2.392215, x4=6.406028 77: x1=1.747191, x2=9.164914, x3=2.408541, x4=6.399302 78: x1=1.771359, x2=9.228874, x3=2.424936, x4=6.392541 79: x1=1.795690, x2=9.292765, x3=2.441399, x4=6.385743 80: x1=1.820187, x2=9.356588, x3=2.457931, x4=6.378910 81: x1=1.844849, x2=9.420343, x3=2.474531, x4=6.372041 82: x1=1.869678, x2=9.484029, x3=2.491197, x4=6.365136 83: x1=1.894673, x2=9.547646, x3=2.507928, x4=6.358197 84: x1=1.919836, x2=9.611193, x3=2.524724, x4=6.351222 85: x1=1.945168, x2=9.674670, x3=2.541585, x4=6.344212 86: x1=1.970668, x2=9.738077, x3=2.558509, x4=6.337168 87: x1=1.996338, x2=9.801413, x3=2.575495, x4=6.330090 88: x1=2.022178, x2=9.864679, x3=2.592543, x4=6.322977 89: x1=2.048189, x2=9.927873, x3=2.609652, x4=6.315831 90: x1=2.074372, x2=9.990995, x3=2.626821, x4=6.308651 91: x1=2.100726, x2=10.054046, x3=2.644049, x4=6.301437 92: x1=2.127253, x2=10.117024, x3=2.661335, x4=6.294190 93: x1=2.153953, x2=10.179929, x3=2.678679, x4=6.286910 94: x1=2.180827, x2=10.242762, x3=2.696080, x4=6.279598 95: x1=2.207875, x2=10.305521, x3=2.713537, x4=6.272252 96: x1=2.235098, x2=10.368207, x3=2.731048, x4=6.264875 97: x1=2.262496, x2=10.430819, x3=2.748614, x4=6.257465 98: x1=2.290070, x2=10.493356, x3=2.766233, x4=6.250023 99: x1=2.317821, x2=10.555819, x3=2.783905, x4=6.242550 -- Вт янв 18, 2011 13:05:52 --JustAManвопрос программисту. Вот если в описании Код: vectorvalue function( vectorvalue Y, double m1, double m2, double k1, double k2 ) поставить & перед аргументами: Код: vectorvalue function( vectorvalue &Y, double &m1, double &m2, double &k1, double &k2 ) это ускорит программу? Хоть немножечко...
|
|