Top "Math.h" questions

For questions relating to functions declared by the math.

What is the difference between atan and atan2 in C++?

What is the difference between atan and atan2 in C++?

c++ math.h
Why do you have to link the math library in C?

If I include <stdlib.h> or <stdio.h> in a C program I don't have to …

c compilation math.h
expected unqualified-id before string constant

I'm currently writing a C++ application which implements an Oscillator in conjuction with math.h. The code I have should …

c++ namespaces g++ math.h object-files
When do I use fabs and when is it sufficient to use std::abs?

I assume that abs and fabs are behaving different when using math.h. But when I use just cmath and …

c++ math.h cmath
pow function in C

I write a C code that have power function that is from math.h library. when I compiled my program, …

c gcc pow math.h
Using pow() function throws undefined reference error in C

Why does the following bit of code work in C: int res = pow(2, 3); printf("%d\n", res); while this other …

c math.h
C1083: Cannot open include file: math.h: No such file or directory

I have a bunch of these errors and am at a dead end. Found plenty of answers on google but …

c++ visual-studio include math.h
finding cube root in C++?

Strange things happen when i try to find the cube root of a number. The following code returns me undefined. …

c++ math.h pow
Linking with gcc and -lm doesn't define ceil() on Ubuntu

I am currently using gcc to compile and I need to use <math.h>. Problem is that it …

c math.h
c math linker problems on Ubuntu 11.10

Some strange error appeared after I upgraded my Ubuntu from (10.11, 11.04 i dont know) to 11.10. I am getting an undefined reference …

c gcc ubuntu linker math.h