From the mathematical point of view, the formulas doesn't make sense. The same variable on both sides make no sense.https://wiki.factorio.com/Locomotive wrote:train_speed = max(0, abs(train_speed) - train_friction_force ÷ train_weight)
train_speed = train_speed + (10 × number_of_locomotives_in_moving_direction × fuel_acceleration_bonus ÷ train_weight)
train_speed = train_speed × (1 - air_resistance_of_front_rolling_stock ÷ (train_weight ÷ 1000))
I'm pretty sure, that these formulas will be run on every tick to set the new value for train speed for each train, but thats not clear out of the wiki page.
The value for "air_resistance_of_rolling_stock" and "train_friction_force" aren't explained anywhere. E.g. does the summed up friction also uncludes additional friction for bends?