<math.h> vs <cmath>

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
arsalan_mousavian
Experienced poster
Posts: 111
Joined: Mon Jan 09, 2006 6:19 pm
Location: Tehran, Iran
Contact:

<math.h> vs <cmath>

Post by arsalan_mousavian »

i 've got many WA on some problem in UVA , because VS 2005 compiler do not have <cmath> library i used <math.h> , but when i submit with #include <cmath>instead of #include <math.h> i 've got AC , seem so strange to me .. ...
any suggestions ?
thanks in Advance
In being unlucky I have the record.
sumankar
A great helper
Posts: 286
Joined: Tue Mar 25, 2003 8:36 am
Location: calcutta
Contact:

Post by sumankar »

http://acm.uva.es/board/viewtopic.php?t ... b027c8d582
A previous post that would explain this Try searching the forums to see if your question has already been answered or not.

<shameless plug>In case, you are too lazy to do that, you can use my search plugin (in case you use Firefox) that would add the uva search box to the list of engines that are available on the top right corner of Firefox.</shameless plug>

HTH
--
Suman
My Blog
My Web Site
Moha
Experienced poster
Posts: 216
Joined: Tue Aug 31, 2004 1:02 am
Location: Tehran
Contact:

Post by Moha »

I think that topic didn't explain that. nevertheless, My opinion is, the problem is because of the precision. may be in your code you have used a math function such as 'abs' but its arguments type didn't equal.
Post Reply

Return to “C++”