Well it seems it's been working all along, it was a matter of the values I was working with.
package pkg;
public class Accel {
public static void main(String[] args) {
accel(1000, -10, 50, 5);
accel(10000, -10, 1000, 100);
}
public static void accel(double vi...