From User talk:Dsekercioglu/MEA
Viewing a history listing
Time User Activity Comment
15:08, 25 September 2017 Dsekercioglu (talk | contribs) Comment text edited (Fixed the equation mark.)
15:06, 25 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
12:08, 25 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
11:08, 25 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
00:44, 25 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
16:26, 24 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
16:21, 24 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
16:19, 24 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
16:18, 24 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
16:15, 24 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
16:12, 24 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
16:09, 24 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
15:31, 24 September 2017 Xor (talk | contribs) Comment text edited
15:31, 24 September 2017 Xor (talk | contribs) Comment text edited
15:27, 24 September 2017 Xor (talk | contribs) Comment text edited
15:27, 24 September 2017 Xor (talk | contribs) Comment text edited
15:26, 24 September 2017 Xor (talk | contribs) Comment text edited
15:25, 24 September 2017 Xor (talk | contribs) Comment text edited
15:23, 24 September 2017 Xor (talk | contribs) Comment text edited
15:21, 24 September 2017 Xor (talk | contribs) Comment text edited
15:20, 24 September 2017 Xor (talk | contribs) Comment text edited
15:11, 24 September 2017 Xor (talk | contribs) Comment text edited
15:08, 24 September 2017 Xor (talk | contribs) Comment text edited
15:08, 24 September 2017 Xor (talk | contribs) Comment text edited
15:06, 24 September 2017 Xor (talk | contribs) Comment text edited
15:05, 24 September 2017 Xor (talk | contribs) Comment text edited
15:03, 24 September 2017 Xor (talk | contribs) Comment text edited
15:02, 24 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
13:04, 24 September 2017 Rsalesc (talk | contribs) Comment text edited
12:58, 24 September 2017 Rsalesc (talk | contribs) Comment text edited
12:52, 24 September 2017 Rsalesc (talk | contribs) Comment text edited
12:51, 24 September 2017 Rsalesc (talk | contribs) New reply created (Reply to And to make it even faster)
10:49, 24 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
10:08, 24 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
01:44, 24 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
16:56, 23 September 2017 GrubbmGait (talk | contribs) New reply created (Reply to And to make it even faster)
13:59, 23 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
13:55, 23 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
13:45, 23 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
13:43, 23 September 2017 Dsekercioglu (talk | contribs) New reply created (Reply to And to make it even faster)
13:40, 23 September 2017 Xor (talk | contribs) New reply created (Reply to And to make it even faster)
13:33, 23 September 2017 Xor (talk | contribs) New thread created

## And to make it even faster

       double x = bulletSpeed;
double a = -3.508129323E-5;
double b = 2.460363294E-3;
double c = -6.666318894E-2;
double d = 8.545020365E-1;
double e = -3.337830707;
double angle = a * x * x * x * x + b * x * x * x + c * x * x + d * x + e;
return Math.sin(angle) / (bulletSpeed / 8 - Math.cos(angle));

Xor (talk)13:33, 23 September 2017

btw, you can try newton's method to find the max value ;)

Xor (talk)13:40, 23 September 2017

I know. But calculated numbers weren't exact and Wolfram Alpha's computation time exceeds.

13:43, 23 September 2017

Precision is up to 9 numbers. I think that it is enough.

13:45, 23 September 2017

Sorry, I didn't see that you changed the code. In my robot I did it like that but it is more understandable with Math.pow(x, y).

13:55, 23 September 2017

Math.pow makes me think something like e^x, but it turned out to be polynomial.

Xor (talk)13:59, 23 September 2017

Wow, I had no idea that the escape angle could be 15% bigger than traditional MEA calculation at the most common bulletspeed of 1.9 . . . Seems like my list of things to do for GresSuffurd to become top-10 again, gets bigger and bigger.

16:56, 23 September 2017

this formula is bigger, simply because it is wrong

Xor (talk)01:44, 24 September 2017

Can you give the formula you used to prove that my formula is wrong?

10:08, 24 September 2017

I published the reason why it is wrong in another thread.

Xor (talk)10:49, 24 September 2017

I also agree that it's wrong. But why is it bigger than the correct one? Can you clarify that?

I understood that the problem with this is that it assumes that it's optimal to move in a fixed retreat angle (like moving in a perfect orbit), when it's actually true that the best retreat angle isn't a function only of the initial position, but it changes as you move around the wave. Is that the real issue?

12:51, 24 September 2017

I knew it's wrong because I had made the same mistake in my previous research.

It's bigger, simply because it uses some smaller distance to calculate the radians.

The correct one is:

$\theta = \int_0^{t_1} \frac{v_{lateral}}{d_{initial} + v_{retreat} t}dt$

where $\theta$ is the escape angle, $t_1$ is the total time (from bullet fired, to bullet hit). (this formula is true even if $v_{lateral}$ or $v_{retreat}$ is not constant)

Note that $d_{initial} + v_{retreat} t$ is bigger than (his) $(v_{bullet} - \overline{v_{retreat}})t_1$ almost all of the time,

as $d_{initial} = (v_{bullet} - \overline{v_{retreat}})t_1$.


Therefore his integral ($\theta = \int_0^{t_1} \frac{v_{lateral}}{(v_{bullet} - \overline{v_{retreat}})t_1}dt = \frac{v_{lateral}}{v_{bullet} - \overline{v_{retreat}}}$, assume $v_{lateral}$ is constant) is bigger.

Xor (talk)15:02, 24 September 2017

• Actually, I'm not sure that Traditional MEA is correct. It assumes that the bot doesn't change it's move angle until the wave hits. Because of that you can't get a MEA higher than Pi / 2 with Traditional MEA formula. When you move orbitally, lateralVelocity / (bulletSpeed + advancingVelocity) is the formula that will give you the EA so you can get a EA higher than Pi / 2.
16:09, 24 September 2017

You can't get escape angle higher than Pi/2 by the traditional formula simply because it is impossible.

If your formula can, it must be wrong.

Xor (talk)16:12, 24 September 2017