source: WorldVistAEHR/trunk/r/VICTORY_PROGRAMMING_ENVIRONMENT-ZVEM/ZVEMSLC.m@ 1520

Last change on this file since 1520 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.0 KB
Line 
1ZVEMSLC ;DJB,VSHL**VA KERNEL Library Functions - Math [04/17/94]
2 ;;12;VPE;;COPYRIGHT David Bolduc @1993
3 ;
4MATH ;;;
5 ;;; MATH FUNCTIONS - XLFMTH
6 ;;;
7 ;;; ABS(%X).......Absolute Value
8 ;;; Returns absolute value of the number in %X.
9 ;;;
10 ;;; MIN(%1,%2)....Minimum
11 ;;; Returns minimum value between numbers in %1 and %2.
12 ;;;
13 ;;; MAX(%1,%2)....Maximum
14 ;;; Returns maximum value between numbers in %1 and %2.
15 ;;;
16 ;;; LN(%X)........Natural Log
17 ;;; Returns natural log of %X (log base e).
18 ;;; Ex: W $$LN^XLFMTH(4.627426) --> 1.532
19 ;;;
20 ;;; EXP(%X).......Exponents
21 ;;; Return e to the %X power.
22 ;;; Ex: W $$EXP^XLFMTH(1.532) --> 4.627426
23 ;;;
24 ;;; PWR(%X,%Y)....Power
25 ;;; Raise %X to the %Y power.
26 ;;; Ex: W $$PWR^XLFMTH(3,2) --> 9
27 ;;;
28 ;;; LOG(%X).......Log
29 ;;; Calculate logarithm (log base 10).
30 ;;; Ex: W $$LOG^XLFMTH(3.1415 --> .497137
31 ;;;
32 ;;; TAN(%X).......Tangent
33 ;;; Calculate tangent of %X (tan X = sin X / cos X) in radians.
34 ;;; Ex: W $$TAN^XLFMTH(.7853982) --> 1.000
35 ;;;
36 ;;; SIN(%X).......Sine
37 ;;; Calculate sine of %X in radians.
38 ;;; Ex: W $$SIN^XLFMTH(.7853982) --> .707107
39 ;;;
40 ;;; COS(%X).......Cosine
41 ;;; Calculate cosine of %X in radians.
42 ;;; Ex: W $$COS^XLFMTH(.7853982) --> .707096
43 ;;;
44 ;;; DTR(%X)......Degrees to Radians
45 ;;; Convert numbers of degrees to number of radians.
46 ;;; Ex: W $$DTR^XLFMTH(45) --> .7853982
47 ;;;
48 ;;; RTD(%X)......Radians to Degrees
49 ;;; Convert number of radians to number of degrees.
50 ;;;
51 ;;; PI().........PI=3.1415927
52 ;;; Returns Pi.
53 ;;;
54 ;;; E()..........e=2.718283
55 ;;; Returns e.
56 ;;;
57 ;;; SQRT(%X).....Square Root
58 ;;; Returns square root of %X.
59 ;;; Ex: W $$SQRT^XLFMTH(144) --> 12
60 ;;;
61 ;;; SD...........Standard Deviation
62 ;;; Only available as a call: D SD^XTFN with input variables of
63 ;;; SX=sum, SSX=sum of squares, and N=count. Standard deviation
64 ;;; is returned in SD.
65 ;;;***
Note: See TracBrowser for help on using the repository browser.