2 ms·
So, neither Claude nor ChatGPT were able to write a little javascript program to provide an optimal solution for a suicide burn. Did anyone else have more luck?
by Tepix 1y ago
So, neither Claude nor ChatGPT were able to write a little javascript program to provide an optimal solution for a suicide burn. Did anyone else have more luck?
- sgentle 1y agoIt's a bit tricky because velocity and altitude are floored every step, and you can only burn on whole timesteps so you can't necessarily hit the target velocity and altitude in a single burn. I'm not sure if it's optimal, but this is a 2-burn solution that does 1 burn to hit x=20 and another to hit v>=-14 right afterwards: https://gist.github.com/sgentle/d88dd6fe37e76f9167db24379dc73249/ https://gist.github.com/sgentle/d88dd6fe37e76f9167db24379dc7...