Here's some simple math I did, and tell me how this is incorrect. I set up an equation where X/295 = 8400/6800 Pretty much we are solving for X. When you solve you get X to equal 364.41 torque. This is what you would need to equal the power of a car making 295 torque with an 8400 rpm. The Lexus makes more than 364.41, so if I am correct, if both cars have gear ratios in which their redline makes them shift at the same mph, the Lexus would be putting more power to the ground. I think ur program is flawed, no way the m3 should have more peak thrust than the lexus in first gear when according to your graphs it seems that they both shift at the same speed.
