Skip to content

Instantly share code, notes, and snippets.

Tamaki Sakura TamakiSakura

Block or report user

Report or block TamakiSakura

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TamakiSakura /
Last active Feb 25, 2018
A slightly more precised calculation of the time taken for a train in a specific line, taken into account of the constant-acceleration-constant power conversion.
import math
# This is a simplified version
# I ignore the following:
# 1. rail resistance
# 2. air resistance when speed is lower than max_tractive_max_power_convert
# 3. variation in deceleration
# Also, due to the usage of using simple numerical method for various approximation,
# the final result may not be fully accurate
You can’t perform that action at this time.