Math-Trig Y by X and Diag

From Vectorlab
Jump to: navigation, search


Pitagora: given a WIDTH (x) and a DIAGONAL (diag), returns the HEIGHT (y). By Orso B. Schmid


{ Orso ************************************************ }
{ Pitagora: given a WIDTH (x) and a DIAGONAL, returns the HEIGHT }
FUNCTION M_Trig_YbyXandD(x, d: REAL): REAL;
	BEGIN
		M_Trig_YbyXandD := sqrt(d^2 - x^2);
	END;