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

LISP recursive math problems

  1. Jan 14, 2009 #1
    I need a programming language primarily to solve tedious, recursive math problems. I've heard that lisp is good for this but don't know whether to go with common lisp or scheme. If there are any other languages that you think will do this better I'd like to hear of those too (I'd prefer not to use a CAS language like maple or mathematica).
  2. jcsd
  3. Jan 15, 2009 #2
    Re: Lisp?

  4. Jan 18, 2009 #3
    Re: Lisp?

    If I am not mistaken, Python does not optimize away tail-call recursion - it will simply put every instance of the function on the stack, eventually leading to an overflow. Scheme does this by design. Scheme and Lisp are much more natural for functional programming techniques than Python.

    I suggest Scheme.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook