numBatteries = (voltage / batteryVoltage) * numString;
totalBatteryWeight = numBatteries * batteryWeight;
totalChargerWeight = chargerWeight;
totalControllerWeight = controllerWeight;
totalMotorWeight = motorWeight;
weightAdded = totalBatteryWeight +
totalChargerWeight +
totalControllerWeight +
totalMotorWeight +
miscWeight;
totalWeight = weightAdded + curb_weight - weightRemoved;
torqueMult = 840.34 / revPerMile;
rollingForce = (totalWeight * (rr + bs)) * cos (atan (incline/100));
inclineForce = totalWeight * sin (atan (incline/100));
drag = (dragCoefficient * frontArea * pow (speed, 2))/391;
windFactor = (((.98 * pow(wind/speed, 2)) +
(.63 * (wind/speed))) * windFactor) -
(.4 * (wind/speed));
windDrag = drag * windFactor;
dragForce = rollingForce + drag + windDrag + inclineForce;
totalDrag = dragForce * torqueMult;
hp = (totalDrag * speed * revPerMile)/ (315120 * drive_efficiency);
torque = totalDrag / (gearRatio * drive_efficiency);
motor_rpm = (speed * gearRatio * revPerMile) / 60;
motorVolts = (rpm * motorD) /
((motorA/(pow (torque, motorB))) + (motorC));
motorAmps = pow ((torque / motorK), (1/motorN));
batteryVolts = voltage;
batteryPower = motorVolts * motorAmps * (controllerEfficiency /100);
batteryAmps = (power / voltage) / numString;
range = (puekertNum/ pow (batteryAmps, puekertExp)) * speed;