#------------------------------------------------------------------------------- # Copyright 2012 Yuriy Lagodiuk # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #------------------------------------------------------------------------------- # allowed functions are: ADD SUB MUL DIV SQRT POW LN SIN COS # set which functions to use: ADD MUL SUB SQRT LN SIN COS # looking for: f(x) - ? # define training set: f(1) = 1.49688 f(2) = 1.60592 f(3) = 1.33498 f(4) = 0.63764 f(5) = 0.53032 f(6) = 0.977 f(7) = 1.86914 f(8) = 2.66362 f(9) = 4.07236 f(10) = 5.41678 f(11) = 5.89846 f(12) = 5.92104 f(13) = 6.17034 f(14) = 5.7629 f(15) = 5.54906 f(16) = 5.65102 f(17) = 5.88328 f(18) = 6.26762 f(19) = 6.39684 f(20) = 6.35866 f(21) = 6.36854 f(22) = 6.19176 f(23) = 6.1053 f(24) = 6.41436 f(25) = 6.48838 f(26) = 6.28772 f(27) = 5.8519 f(28) = 5.4304 f(29) = 4.67626 f(30) = 3.84444 f(31) = 2.87512 f(32) = 1.57134 f(33) = 0.50792 f(34) = -0.15468 f(35) = -0.68824 f(36) = -0.73248 f(37) = -0.52576 f(38) = -0.64782 f(39) = -0.87102 f(40) = -0.85706 f(41) = -1.05598 f(42) = -1.06568 f(43) = -1.05998 f(44) = -1.03952 f(45) = -0.95942 f(46) = -0.73124 f(47) = -0.13104 f(48) = 0.24242 f(49) = 0.62696 f(50) = 0.6047 f(51) = 0.1433 f(52) = -0.49518 f(53) = -0.59056 f(54) = -0.8458 f(55) = -0.75842 f(56) = -0.5022 f(57) = -0.04676 f(58) = -0.1612 f(59) = -0.10376 f(60) = -0.01584 f(61) = 0.32854 f(62) = 0.72384 f(63) = 1.31462 f(64) = 1.5415 f(65) = 1.48672 f(66) = 1.00498 f(67) = 0.73268 f(68) = 0.34728 f(69) = 0.44836 f(70) = 0.64932 f(71) = 1.22022 f(72) = 1.11096 f(73) = 0.8553 f(74) = 0.19112 f(75) = -0.27054 f(76) = -0.89922 f(77) = -1.35128 f(78) = -1.1938 f(79) = -0.7093 f(80) = -0.3313 f(81) = 0.3619 f(82) = 0.8641 f(83) = 1.17154 f(84) = 1.55694 f(85) = 1.81548 f(86) = 1.77376 f(87) = 1.66394 f(88) = 1.19618 f(89) = 0.62918 f(90) = 0.31206 f(91) = 0.50062 f(92) = 0.77012 f(93) = 1.27972 f(94) = 1.70088 f(95) = 1.54888 f(96) = 0.80718 f(97) = -0.0859 f(98) = -0.75906 f(99) = -1.52602 f(100) = -1.80966 f(101) = -2.08604 f(102) = -1.91516 f(103) = -2.0495 f(104) = -1.8948 f(105) = -1.62772 f(106) = -0.93606 f(107) = -0.4131 f(108) = -0.25004 f(109) = -0.3692 f(110) = -0.3534 f(111) = -0.896 f(112) = -1.1533 f(113) = -0.9324 f(114) = -0.27834 f(115) = -0.35278 f(116) = -0.24488 f(117) = -0.58154 f(118) = -0.32774 f(119) = -0.2216 f(120) = 0.5419 f(121) = 1.05696 f(122) = 1.66834 f(123) = 1.5825 f(124) = 1.55986 f(125) = 1.20812 f(126) = 1.2435 f(127) = 0.95872 f(128) = 0.68612 f(129) = 0.0564000000000001 f(130) = -0.77018 f(131) = -1.55282 f(132) = -1.79044 f(133) = -1.92682 f(134) = -2.1516 f(135) = -1.813 f(136) = -1.53982 f(137) = -1.41016 f(138) = -1.29558 f(139) = -0.97812 f(140) = -1.26794 f(141) = -1.65594 f(142) = -2.11162 f(143) = -2.72216 f(144) = -3.45052 f(145) = -3.8627 f(146) = -4.57708 f(147) = -4.86088 f(148) = -4.81644 f(149) = -4.54918 f(150) = -4.2089 f(151) = -3.66174 f(152) = -3.15842 f(153) = -2.83608 f(154) = -2.68486 f(155) = -2.27154 f(156) = -1.78488 f(157) = -1.66842 f(158) = -1.59572 f(159) = -1.55698 f(160) = -2.0164 f(161) = -1.87972 f(162) = -1.3078 f(163) = -0.67282 f(164) = -0.18318 f(165) = 0.30842 f(166) = 0.21036 f(167) = -0.05072 f(168) = -0.6136 f(169) = -1.33472 f(170) = -2.10046 f(171) = -2.68762 f(172) = -3.29608 f(173) = -3.48696 f(174) = -3.21884 f(175) = -2.65096 f(176) = -2.3018