Difference between revisions of "GetYIntercept"

From scripting
Jump to: navigation, search
(Created page with " Function GetYIntercept(X1 As Variant, X2 As Variant, Y1 As Variant, Y2 As Variant) As Double GetYIntercept = Y1 - (X1 * (Y1 - Y2) / (X1 - X2)) End Function Category:CAT...")
 
(No difference)

Latest revision as of 06:03, 22 April 2017

Function GetYIntercept(X1 As Variant, X2 As Variant, Y1 As Variant, Y2 As Variant) As Double
GetYIntercept = Y1 - (X1 * (Y1 - Y2) / (X1 - X2))
End Function