local H=_Tune.Horsepower/100 local J=_Tune.PeakRPM/1000 local V=_Tune.PeakSharpness local i=_Tune.CurveMult local function P(P)P=P/1000 return(-(P-J)^2*math.min(H/J^2,i^(J/H))+H)*(P-P^V/(V*J)^(V-1))end local F=P(_Tune.PeakRPM)

local fgc_h=_Tune.Horsepower/100
local fgc_n=_Tune.PeakRPM/1000
local fgc_a=_Tune.PeakSharpness
local fgc_c=_Tune.CurveMult

local function FGC(x)
	x=x/1000
	return (((-(x-fgc_n)^2)*math.min(fgc_h/(fgc_n^2),fgc_c^(fgc_n/fgc_h)))+fgc_h)*(x-((x^fgc_a)/((fgc_a*fgc_n)^(fgc_a-1))))
end
local PeakFGC = FGC(_Tune.PeakRPM)
