Short: Add trig (rexxmathlib) to eval command Author: Chris Eburn Uploader: Chris Eburn Version: 1.0 Type: util/rexx Required: rexxmathlib.library What follows is the comment header of EVAL.rexx /**** * Enhanced "c:Eval" Command * * With trig and other functions * see REXXMATHLIB.library for fuction details * * syntax is the same as the rexxmathlib function calls * ie: func(x[,y]) * OR spaces may be used as deliminators (in all funtions) * ie: func x [y] * * There are two extra functions: * * 1) DEG(deg,min,sec) outputs Decimal degrees * or the alternative syntax is DEG(dd.mmss) * * 2) DMS(DD.dddd) outputs dd mm ss * * * If the function is unknown to rexxmathlib then the original line is * passed, as typed, to the c:eval function. This alows for all the * original "eval" maths (and syntax) to be used as a failsafe. * * * Add the line * Alias Eval rx rexx:eval.rexx [] * into the s:shell-startup script and use in any Shell * syntax: eval func(x[,y]) OR as per dos EVAL command * Put eval.rexx into rexx: * and rexxmathlib.library into libs: * * NOTE: all angles are input as decimal DEGREES (NOT radians) **/ ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 628 254 59.5% 27-Apr-98 20:23:26 SuperEval.info 3520 1462 58.4% 27-Apr-98 18:14:26 +Eval.rexx 1310 653 50.1% 27-Apr-98 20:21:56 +SuperEval.readme -------- ------- ----- --------- -------- 5458 2369 56.5% 27-Apr-98 18:44:26 3 files