"Running non recursive evaluator"
|
06-14-2014, 06:03 PM
Post: #1
|
|||
|
|||
"Running non recursive evaluator"
This occurs whenever recursion depth goes beyond the "Recursive Function" parameter in the CAS Setting. The maximum limit for this parameter seems to be 100. That is not very deep for recursive algorithms, especially since the Prime does not seem to do tail recursion optimization. Here is a simple example:
Code: (x,a)->BEGIN PS, the typo "Rescursive Evaluation" in CAS Settings is still there in the new firmware. |
|||
06-14-2014, 06:43 PM
Post: #2
|
|||
|
|||
RE: "Running non recursive evaluator"
I don't know any portable way to check for stack overflow in C. That's the reason for the max recursive eval parameter. Initially, you got a runtime error if the max number of recursive calls was reached, later I implemented a non-recursive evaluator (with dynamic allocation of the space required to make recursive calls), you don't get an error anymore, but it's slower, therefore the warning remains.
By the way, you should not consider the CAS programming language like a traditional programming language designed by CS people for large projects. Like for many other CAS, it's just a scripting language to make easily small programming extensions (say up to about 1000 lines of code on a PC). Large CAS development should be done in C++ on a PC/Mac with libgiac. |
|||
11-07-2016, 03:11 AM
Post: #3
|
|||
|
|||
RE: "Running non recursive evaluator"
After upgrading to the latest software version, running any of my cas programs shows "Running non recursive evaluator" After "enter'' I may get a result, but not always. I have not been able to figure out why this is happening. Does anyone know? Thanks.
|
|||
11-07-2016, 01:42 PM
(This post was last modified: 11-07-2016 01:47 PM by cclinus.)
Post: #4
|
|||
|
|||
RE: "Running non recursive evaluator" | |||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)