- #1
Twinbee
- 117
- 0
I have arbitrary input numbers, and an arbitrary output. I want a program to automatically give me a function (various constants and mathematical symbols) to convert from the input to the output. What's the best way of doing this?
Are there any programs to do this for you, perhaps which use genetic programming? Any general techniques and tricks to solve this manually?
Here are two examples. The solution to the second one would be great, but I would prefer a general technique to achieve the conversion for any example.
1, 4 -> 15
2, 2 -> 12
5,1 -> 18
Easy peasy - you just add the first two numbers together, and multiply that by 3. Anyone can do that in their head. But for something like this, it gets much harder:
a=3. b=8. c=1.6 -> 0
a=2 b=1.5 c=3 -> 0
a=1.6666 b=3 c=3 -> 0
a=1.85 b=3.863 c=2.5 -> 0
a=2.1 b=2.445 c=2.4 -> 0
Are there any programs to do this for you, perhaps which use genetic programming? Any general techniques and tricks to solve this manually?
Here are two examples. The solution to the second one would be great, but I would prefer a general technique to achieve the conversion for any example.
1, 4 -> 15
2, 2 -> 12
5,1 -> 18
Easy peasy - you just add the first two numbers together, and multiply that by 3. Anyone can do that in their head. But for something like this, it gets much harder:
a=3. b=8. c=1.6 -> 0
a=2 b=1.5 c=3 -> 0
a=1.6666 b=3 c=3 -> 0
a=1.85 b=3.863 c=2.5 -> 0
a=2.1 b=2.445 c=2.4 -> 0