Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Hermitian Polynomials in C++

  1. Mar 8, 2005 #1
    Im having difficulty computing large Hermitian polynomials in C++. I fear I may have to steer away from a recursive formula. Any help would be greatly appreciated.

    John
     
  2. jcsd
  3. Mar 8, 2005 #2
    Recursion would OK as long as you make your programs tail recursive, meaning the recursive call is the last statement in teh function.
     
  4. Mar 12, 2005 #3
    Sor2char, you mean you are running out of stack space.

    Anything that can be done recursively can be done in a loop. This should take care of stack problems. It can be pain to write some recursive function as a loop however.

    Hope this helps.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook