Math-Trig Secant by Diag and Ang

From Vectorlab
Jump to: navigation, search


Given a DIAGONAL (d) and an ANGLE (ang), returns the length of the SECANT. This needs the routines M_Trig_XbyYandAng and M_Trig_CoSecByDandAng to be loaded first. By Orso B. Schmid


{ Orso ************************************************ }
{ Trig: given a DIAGONAL (d) and an ANGLE (ang), returns the length of the SECANT}
{ this doesn't take into account when the tan is undefined: d > 0 and ang 90 and similar cases }
FUNCTION M_Trig_SecByDandAng(d, ang: REAL): REAL;
	BEGIN
		M_Trig_SecByDandAng := M_Trig_XbyYandAng(M_Trig_CoSecByDandAng(d, ang), 90-ang);
	END;