Arithmatic functions in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bajajv
    New Member
    • Jun 2007
    • 152

    #1

    Arithmatic functions in c++

    Hi,
    I have to implement some maths functions.
    Just wanted to know that is there any library in c++ which contains arithmatic functions like min, max, average, count, means and deviations?
    Or do I need to implement them all?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Depends how you hold your data, the algorithm functional and numeric headers declare functions and templates that can be of use calculating this sort of thing using functors (functional objects). But then tend to work on STL containers.

    And of course the is the old c maths library (cmath header) which contains some raw maths functions, trig and exponential).

    Comment

    Working...