home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   sci.math.symbolic      Symbolic algebra discussion      10,432 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 10,379 of 10,432   
   Nasser M. Abbasi to All   
   adding timelimit to CAS calls to integra   
   26 Jan 24 00:48:27   
   
   From: nma@12000.org   
      
   FYI;   
      
   I run some tests using different CAS systems that do not support   
   setting a timelimit on its calls.   
      
   For example Reduce and Fricas and Maxima and GIAC and others.   
      
   For me, timelimit() is the most important function, as without   
   it, it is very easy to make any CAS hang.  Yet, strangely   
   open source CAS systems do not have such a basic function as   
   a built-in.   
      
   They do not have a direct way to insure a call to some command   
   such as integrate should not take more than say 30 seconds and   
   to return an error if the call exceeds this timelimit.   
      
   Commercial CAS systems Maple and Mathematica have an easy to use   
   built-in command for this. This document is meant to describe how   
   to add timelimit to other systems that do not support this.   
      
   This method only works and have been tested on Linux.   
      
   I found this method to be reliable and works well. It is   
   based on using the Linux command timeout and using   
   Python's subprocess.Popen().   
      
   Python is used as the main driver for all these scripts.   
      
      
      
   --Nasser   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca