Hello,
Suppose I have two functions func1(x) and func2(x) computing the same entity, where depending on the input one may be much faster than the other (or vice versa).
For the same input x, I'd like to compute them in parallel and return the result as soon as one of them completes, and terminate execution of the other.
Is there a way to achieve this in PARI/GP?
Regards,
Max