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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Hermitian Polynomials in C++
  1. Learning C/C++ (Replies: 5)

  2. C question (Replies: 6)

  3. C++ vector (Replies: 3)

  4. Learning C++ (Replies: 9)

  5. A C problem (Replies: 9)

Loading...