Functions sinus and cosinus

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Functions sinus and cosinus

Post 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
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Functions sinus and cosinus

Post 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
Viva INTERNATIONAL HMG :D
chrisjx2002
Posts: 192
Joined: Wed Jan 06, 2010 5:39 pm

Re: Functions sinus and cosinus

Post by chrisjx2002 »

Thanks a lot for this very fast and efficent answer!
Post Reply