Page 1 of 1
Function for Math Library
Posted: Sun Feb 10, 2013 9:05 am
by NikitaOdnorob98
The cotangent angle (
ctg):
Code: Select all
Procedure Ctg(Angle)
ProcedureReturn Cos(Angle)/Sin(Angle)
EndProcedure
Re: Function for Math Library
Posted: Sun Feb 10, 2013 10:59 am
by Little John
Here you are:
Code: Select all
Macro Cot(_x_)
(1.0/Tan(_x_))
EndMacro
It would not make sense if for of each built-in PB function the reciprocal would also be built into PB.
Re: Function for Math Library
Posted: Sun Sep 19, 2021 5:03 pm
by ehowington
Little John wrote: Sun Feb 10, 2013 10:59 am
Here you are:
Code: Select all
Macro Cot(_x_)
(1.0/Tan(_x_))
EndMacro
It would not make sense if for of each built-in PB function the reciprocal would also be built into PB.
++ that It would not make sense if for of each built-in PB function the reciprocal would also be built into PB.