Post edit history
Overdrive in Energy Deficit
Before | After | ||
---|---|---|---|
1 | I defined abs(x)=0 if x<0. Otherwise I would use |x|. You're right that abs is also often used for |.|, though. My formulas are rather mathematic here. As a programmer, you would express that with if and else. | 1 | I defined abs(x)=0 if x<0. Otherwise I would use |x|. You're right that abs is also often used for |.|, though. My formulas are rather mathematic here. As a programmer, you would express that with if and else. |
2 | \n | ||
3 | Indeed I had to correct my 3rd formula for the case of full energy storage. The corrected one is now mathematically not defined in the case of full metal storage. You would have to account for that when coding it, but the code would look differently anyway. |