TRIapprox function

Internal Function