More actions
Recategorized. |
m →Implementation: specified this is Python 3; it won't run in Python 2 because of syntax changes in function calls |
||
| Line 171: | Line 171: | ||
=Implementation= | =Implementation= | ||
The following python code is one possible implementation of the above. It attempts to generate the same data as presented by CCP in the forums. It matches with their numbers, except for 50 AU titan warps, which are one second out. Note that the sub warp speed of the ship is fixed at 200 m/s. This is because the CCP-produced tables assume that every ship drops out of warp at 100 m/s<ref>https://forums.eveonline.com/default.aspx?g=posts&m=3902148#post3902148</ref>. If trying to run calculations for actual ships, this value will need to be replaced with a more appropriate one. The output values are also passed through the ceil() function, as this is what seems to match the rounding mode that CCP used.<ref>http://content.eveonline.com/www/newssystem/media/65418/1/numbers_table.png</ref> | The following python 3 code is one possible implementation of the above. It attempts to generate the same data as presented by CCP in the forums. It matches with their numbers, except for 50 AU titan warps, which are one second out. Note that the sub warp speed of the ship is fixed at 200 m/s. This is because the CCP-produced tables assume that every ship drops out of warp at 100 m/s<ref>https://forums.eveonline.com/default.aspx?g=posts&m=3902148#post3902148</ref>. If trying to run calculations for actual ships, this value will need to be replaced with a more appropriate one. The output values are also passed through the ceil() function, as this is what seems to match the rounding mode that CCP used.<ref>http://content.eveonline.com/www/newssystem/media/65418/1/numbers_table.png</ref> | ||
<pre> | <pre> | ||