Curve Joystick Moving Slow when moving backwards

int curveJoystick(bool red,int input, double t){
int val=0;
if (red){
val=(std::exp(-t/10)+std::exp((std::exp(input)-100/10))*(1-std::exp(-t/10))) * input;
}
else{
val = std::exp(((std::abs(input)-100)*t)/1000) *input;
}
return val;
}
LF.spin(directionType::fwd, curveJoystick(1,J3,8), velocityUnits::pct);
LR.spin(directionType::fwd, curveJoystick(1,J3,8), velocityUnits::pct);
RF.spin(directionType::fwd, curveJoystick(1,J2,8), velocityUnits::pct);
RR.spin(directionType::fwd,curveJoystick(1,J2,8) , velocityUnits::pct);

It works when moving forward, however, when moving backwards the robot slows down in speed.

In the future, can you format your code?

[Code]
This would be Formated code.
[/Code]

Also, what are you trying to do with this code? Curve the joystick to give more control at lower speed?

Give more control for turning but when the joysticks are negative the drivetrain moves slowly