yacas icon indicating copy to clipboard operation
yacas copied to clipboard

No obvious timeout control available

Open wdkrnls opened this issue 6 months ago • 2 comments

I want to avoid getting stuck into a practically infinite search. Is there a way to cause all computations to error out if clock time exceeds e.g. 3 seconds? I'm looking for functionality like:

SetTimeout(3) 
InfiniteLoop()

Or

WithTimeout(3) Solve({x + Sqrt(y) == 1, x + y == 2}, {x, y})

It would be nice to limit max iterations as well. However, that seems like something which would have to happen on a case by case basis.

WithMaxIterations(10) SumTriangle(100)

wdkrnls avatar Sep 01 '24 19:09 wdkrnls