![]() |
|
|
#12 | |
|
Oct 2017
1638 Posts |
Quote:
y=x*x, f(x)=(a*y+b)*y+..., because we have to find „ an expression with no more than 15 operations ...“. In my understanding it has to be one expression (ein geschlossener Ausdruck). |
|
|
|
|
|
|
#13 |
|
Feb 2017
Nowhere
4,643 Posts |
I have submitted a solution to the December 2019 "Ponder This."
|
|
|
|
|
|
#14 |
|
Dec 2019
Kansas
24 Posts |
So brackets are not allowed, ex. x*(5*x+2) would have to be written as 5*x*x+2*x?
Last fiddled with by what on 2019-12-06 at 20:14 |
|
|
|
|
|
#15 |
|
"Ed Hall"
Dec 2009
Adirondack Mtns
11×347 Posts |
|
|
|
|
|
|
#16 |
|
Dec 2019
Kansas
1016 Posts |
so far I got 0.0005108359660008244 with 11 operations using fourier approximation with some tweaking. I think i need a different approach
Last fiddled with by what on 2019-12-06 at 23:55 |
|
|
|
|
|
#17 |
|
Romulan Interpreter
Jun 2011
Thailand
7·1,373 Posts |
Nobody said anything about separate expressions.
Of course, you have to write everything in one expression, y=f(x), where you expand f. Parenthesis are allowed, see their example. |
|
|
|
|
|
#18 | |
|
Dec 2019
Kansas
24 Posts |
Quote:
how do you do so? Last fiddled with by what on 2019-12-07 at 02:46 |
|
|
|
|
|
|
#19 |
|
Dec 2019
Kansas
208 Posts |
|
|
|
|
|
|
#20 |
|
Feb 2019
9010 Posts |
I chose a non-polynomial approach and got a MSE of 1.4107e-05 with 11 operations by optimizing coefficients of the ansatz function.
|
|
|
|
|
|
#21 |
|
Romulan Interpreter
Jun 2011
Thailand
961110 Posts |
I may be able to prove that the best you can do in such a way that all constants that you use are integers that fit in 16-bit word (two's complement. i.e. from -32768 to +32767), is about 2.3e-5 (which is a viable solution) regardless of arrangement of operations.
Last fiddled with by LaurV on 2019-12-11 at 04:55 |
|
|
|
|
|
#22 |
|
"Max"
Jun 2016
Toronto
37D16 Posts |
Nine operations did it for me (plot 1). I sent the solution yesterday. The coefficients were decimal though. The plot goes off beyond [-1, 1] of course (plot 2).
The fifteen operations produce the MSE ten times better than expected (plot 3). Last fiddled with by Max0526 on 2019-12-13 at 22:52 Reason: added two more plots |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| December 2018 | Xyzzy | Puzzles | 6 | 2019-01-06 23:07 |
| December 2017 | Batalov | Puzzles | 4 | 2018-01-04 04:33 |
| December 2016 | Xyzzy | Puzzles | 11 | 2017-01-24 12:27 |
| December 2015 | Xyzzy | Puzzles | 15 | 2016-01-06 10:23 |
| December 2014 | Xyzzy | Puzzles | 13 | 2015-01-02 19:41 |