;[CALHELP1.CAL] This is XCAL's help for Non-Transcendental Native Functions ; ;HelpPage ;HelpSection Native Non-Trigonometric Functions ;HelpStart FUNCTION,FUNCTIONS,NATIVE ;HelpStart ABS,ABS(X),ABSOLUTE,ABSOLUTE VALUE ABS(x) ------ The ABS function returns the Absolute Value of the given argument. ;HelpEnd ABS,ABS(X),ABSOLUTE,ABSOLUTE VALUE ;HelpStart DEG,DEG(X),RADIAN,RADIANS,DEGREE,DEGREES DEG(x) ------ The DEG function converts Radians to Degrees with the formula: Degrees = Radians * (180 / Pi) Note: One Radian is approximately 57.295779513082 Degrees. One Degree is approximately 0.01745329252 Radians. ;HelpEnd DEG,DEG(X),RADIAN,RADIANS,DEGREE,DEGREES ;HelpStart EXP,EXP(X),EXP2,EXP2(X),EXP10,EXP10(X),ANTILOG,ANTILOG(X) EXP(x) ------ EXP(x) returns the exponential function e^x (antilog base e of x). EXP2(x) returns the exponential function 2^x (antilog base 2 of x). EXP10(x) returns the exponential function 10^x (antilog base 10 of x). y | * If x is large, an ERANGE (result out y=EXP(x) +e+- - - - - - - -* of range) error may occur. | *| | * | In the formula y=EXP(x), the DOMAIN +2+ * | x is -Infinity..+Infinity while | * | the RANGE y is 0..+Infinity. | * | +1* | Graphically, y=EXP(x) may be * | | represented as shown. * 0| | x------+-------+-------+-------+--- Note: e = EXP(1) = 2.71828182845 -.5 0 +.5 +1 Note: 1 = LOG(e) ;HelpStart IDENTITY,IDENTITIES Common mathematical identities with EXP: EXP(-x) = 1/EXP(x) EXP(i*x) = COS(x)+i*SIN(x) EXP(-i*x) = COS(x)-i*SIN(x) EXP(a^b) = EXP(1)^(a^b) EXP(a*b) = EXP(a)^b EXP(a/b) = EXP(a)^(1/b) EXP(a+b) = EXP(a)*EXP(b) EXP(a-b) = EXP(a)/EXP(b) SIN(x) = (e^(i*x)-e^(-i*x))/(2*i) COS(x) = (e^(i*x)+e^(-i*x))/2 TAN(x) = -i*((e^(i*x)-e^(-i*x))/(e^(i*x)+e^(-i*x))) COT(x) = i*((e^(i*x)+e^(-i*x))/(e^(i*x)-e^(-i*x))) SEC(x) = 2/(e^(i*x)+e^(-i*x)) CSC(x) = 2*i/(e^(i*x)-e^(-i*x)) ;HelpEnd IDENTITY,IDENTITIES ;HelpEnd EXP,EXP(X),EXP2,EXP2(X),EXP10,EXP10(X),ANTILOG,ANTILOG(X) ;HelpPage ;HelpStart FACTOR,FACTOR(X),PRIMES,PRODUCT OF PRIMES FACTOR(x) --------- The FACTOR function computes and displays the "Product of Primes" of the given argument. The function handles both positive and negative arguments and returns the INT(x). Example: Xcal>factor(11!) 1*2^8*3^4*5^2*7*11=39916800 Xcal>factor(-24.6) -1*2^3*3=-24 Xcal> ;HelpEnd FACTOR,FACTOR(X),PRIMES,PRODUCT OF PRIMES ;HelpStart FRAC,FRAC(X),FRACTION,FRACTIONS FRAC(x) ------- The FRAC function returns the fractional part of a real number. Example: Xcal>frac(1.234) 0.234 Xcal> ;HelpEnd FRAC,FRAC(X),FRACTION,FRACTIONS ;HelpStart INT,INT(X),INTEGER INT(x) ------ The INT function returns the INTEGER part of a real number. This is the same as TRUNC(x). Example: Xcal>int(1.234) 1 Xcal> ;HelpEnd INT,INT(X),INTEGER ;HelpPage ;HelpStart LOG,LOG(X),LOG2,LOG2(X),LOG10,LOG10(X),NAPIERIAN,BRIGGSIAN LOG(x) ------ LOG(x) returns the natural logarithm (base e) of x. (Napierian) LOG2(x) returns the logarithm (base 2) of x. LOG10(x) returns the common logarithm (base 10) of x. (Briggsian) y +2+ y=LOG(x) * If x is large, an ERANGE (result | * out of range) error may occur. | * +1+- - - - - - -* In the formula y=LOG(x), the DOMAIN | * | x is 0 < x < +Infinity while the | * | RANGE y is -Infinity..+Infinity. x-+-----*----+--+-+----+----+----+----+ |0 * 1 2 e 3 4 5 6 7 Graphically, y=LOG(x) may be | * represented as shown. -1+ * e=2.71828182845 | Note: e = EXP(1) = 2.71828182845 -2+* Note: 1 = LOG(e) ;HelpStart IDENTITY,IDENTITIES Common mathematical identities with LOG: LOG(a^b) = LOG(a)*b LOG(a*b) = LOG(a)+LOG(b) LOG(a/b) = LOG(a)-LOG(b) ;HelpEnd IDENTITY,IDENTITIES ;HelpEnd LOG,LOG(X),LOG2,LOG2(X),LOG10,LOG10(X),NAPIERIAN,BRIGGSIAN ;HelpPage ;HelpStart RAD,RAD(X),RADIAN,RADIANS,DEGREE,DEGREES RAD(x) ------ The RAD function converts Degrees to Radians with the formula: Radians = Degrees / (180 / Pi) Note: One Radian is approximately 57.295779513082 Degrees. One Degree is approximately 0.01745329252 Radians. ;HelpEnd RAD,RAD(X),RADIAN,RADIANS,DEGREE,DEGREES ;HelpStart TRUNC,TRUNC(X),INTEGER TRUNC(x) -------- The TRUNC function returns the INTEGER part of a real number. This is the same as INT(x). Example: Xcal>trunc(1.234) 1 Xcal> ;HelpEnd TRUNC,TRUNC(X),INTEGER ;HelpEnd FUNCTION,FUNCTIONS,NATIVE ;********************************************************************** ;******* End of CALHELP1.CAL ******* ;**********************************************************************