【发布时间】:2018-10-25 09:11:50
【问题描述】:
我有 Pari/GP 32 位,并希望实现任何类型的代码,该代码在有限的时间内运行,如果到那时没有产生任何内容,则自动停止。这是一个伪代码示例:
command
...
run command
if run time over 3 minutes
automatically interrupt the program and stop running
我知道有一种基本方法可以做到这一点,但我从未在 PARI/GP 指南中找到它。有什么帮助吗?谢谢。
【问题讨论】: