Short: Add trig (rexxmathlib) to eval command Author: Chris Eburn Uploader: Chris Eburn Type: util/rexx Version: 1.0 Architecture: m68k-amigaos 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) **/