Page 1 of 1

Functions sinus and cosinus

Posted: Tue Jun 07, 2011 4:41 pm
by chrisjx2002
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

Re: Functions sinus and cosinus

Posted: Tue Jun 07, 2011 5:02 pm
by esgici
chrisjx2002 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
Hi Chris

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

Re: Functions sinus and cosinus

Posted: Tue Jun 07, 2011 5:40 pm
by chrisjx2002
Thanks a lot for this very fast and efficent answer!