Hello,
I want to use the sinus and cosinus functions in one of my programs. I didn't find them in Harbour. Perhaps I made a wrong search.
Is there a simple way to have them?
Regards
Functions sinus and cosinus
Moderator: Rathinagiri
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: Functions sinus and cosinus
Hi Chrischrisjx2002 wrote:Hello,
I want to use the sinus and cosinus functions in one of my programs. I didn't find them in Harbour. Perhaps I made a wrong search.
Is there a simple way to have them?
Regards
Along other trigonometric functions, Sinus and Cosinus are included in Harbour:
SIN (nRadiant) -> nSine
COS (nRadiant) -> nCosine
Source is trig.c, library is libct.
Other math funcs :
TAN() : Tangent
COT() : CoTangent
ASIN() : Arcus Sin
ACOS() : Arcus CoSin
ATAN() : Arcus Tangent
ATN2() : Arcus tangent a sine and a cosine argument
SINH() : Hyperbolic Sine
COSH() : Hyperbolic CoSine
TANH() : Hyperbolic Tangent
RTOD() : Convert radiant to degree
DTOR() : Convert degree to radiant
PI() : Pi
Regards
--
Esgici
Viva INTERNATIONAL HMG 
-
chrisjx2002
- Posts: 192
- Joined: Wed Jan 06, 2010 5:39 pm
Re: Functions sinus and cosinus
Thanks a lot for this very fast and efficent answer!