arctan() and abs() functions

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
lobow
New poster
Posts: 10
Joined: Tue Jun 08, 2004 7:27 pm
Location: Pelotas - RS - Brazil
Contact:

arctan() and abs() functions

Post by lobow »

Hi! I have to use these fuctions arctan() and abs() but the compiler didnt find it in math.h . Is it in another library?

Is there a site that has a list of librarys and its functions?

angga888
Experienced poster
Posts: 143
Joined: Sat Dec 21, 2002 11:41 am
Location: Indonesia

Re: arctan() and abs() functions

Post by angga888 »

lobow wrote:Hi! I have to use these fuctions arctan() and abs() but the compiler didnt find it in math.h .
Are you sure? arctan() -> atan()
My C compiler support those functions.

angga888
Experienced poster
Posts: 143
Joined: Sat Dec 21, 2002 11:41 am
Location: Indonesia

Post by angga888 »

And also you can find everything on the Help menu. :wink:

lobow
New poster
Posts: 10
Joined: Tue Jun 08, 2004 7:27 pm
Location: Pelotas - RS - Brazil
Contact:

Post by lobow »

Tks, I have already founded it. abs() was in stdlib.h
and i just have atan() thats why I dont find that.

Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Post by Dominik Michniewski »

In "math.h" header is also function fabs() - absolute value for floating point numbers :-)

Best regards
DM
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)

Post Reply

Return to “C”