Maths commands

Discussion in 'Mac Programming' started by jmac555, Jun 18, 2008.

  1. macrumors newbie

    Joined:
    Jun 4, 2008
    #1
    Hi i am about to enter a programming competition and much to my horror i realized that my knowledge of reasonably tricky maths commands in c++ is not strong enough. I was wondering if anybody could suggest a good place to brush up on commands to do with this subject. Basically the level i want is commands like (isPallendrome = true) and stuff relating to <math.h>
    thanks in advance
     
  2. macrumors 6502a

    Joined:
    Sep 3, 2005
    Location:
    Cramlington, UK
    #2
    I'm not sure if this is useful to you, but there is a library to do symbolic stuff, SymbolicC++. As it happens I'm just about to try it out myself.

    b e n
     
  3. macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #3
    Do you mean a palindrome in the sense that a string is equal to it's reverse? Or do you mean a palindrome in the more general sense that one string is a permutation of another string?

    Generally speaking, unless you're approaching the subject through permutation groups, deciding whether or not a string is a palindrome of another string isn't dependent on any math libraries.

    As for math libraries, math.h is the header for the C standard math library, which basically provides transcendental functions (google GNU C library for the manual). The Boost and TR1 C++ libraries expand on this a great deal adding special functions, random number generators, combinatorics, quaternions (i.e. ugly ways to write rotation matrices) etc.

    What functionality, exactly, are you looking for?
     

Share This Page