APPENDIX B
B
Operators in Type 4
Functions
This appendix summarizes the PostScript operators that can appear in a type 4
function, as discussed in Section 3.9.4, “Type 4 (PostScript Calculator) Func-
tions.” For details on these operators, see the
PostScript Language Reference,
Third
Edition.
B.1 Arithmetic Operators
num
1
num
2
num
1
num
2
num
1
num
2
num
1
num
2
int
1
int
2
int
1
int
2
num
1
num
1
num
1
num
1
num
1
num
1
num
angle
angle
num den
base exponent
num
num
num
num
add
sum
sub
difference
mul
product
div
quotient
idiv
quotient
mod
remainder
neg
num
2
abs
num
2
ceiling
num
2
floor
num
2
round
num
2
truncate
num
2
sqrt
real
sin
real
cos
real
atan
angle
exp
real
ln
real
log
real
cvi
int
cvr
real
Return
num
1
plus
num
2
Return
num
1
minus
num
2
Return
num
1
times
num
2
Return
num
1
divided by
num
2
Return
int
1
divided by
int
2
as an integer
Return remainder after dividing
int
1
by
int
2
Return negative of
num
1
Return absolute value of
num
1
Return ceiling of
num
1
Return floor of
num
1
Round
num
1
to nearest integer
Remove fractional part of
num
1
Return square root of
num
Return sine of
angle
degrees
Return cosine of
angle
degrees
Return arc tangent of
num
/
den
in degrees
Raise
base
to
exponent
power
Return natural logarithm (base
e
)
Return common logarithm (base 10)
Convert to integer
Convert to real
989
Index Bookmark Pages Text
Previous Next
Pages: Index All Pages
This HTML file was created by VeryPDF PDF to HTML Converter product.