If B is the sine of an angle, then OOB yields the cosine of the same angle, and con-
versely, if B
is the cosine, OOB yields the sine. Suppose you wanted the sine of
30°, which is equivalent to pi divided by 6:
c. 1 (3 ( C) .:- b 1
B
0 C) B
0,:: Sine of 30'
0 I I36651334 Cosine of 30'
19 4- 2 C) ( C) + 6 1
IEC
I) I:] B
0 8 t36c',03~
0 #!54 Sine of 30'
Cosine of 30'
If one argument is a scalar or a single-element array, the shape of the result is the
same as that of the other argument. The single element is applied to every element
of the multielement array:
m(-J
The ! Function: Factorial, Binomial
The ! symbol is formed by overstriking the quotation mark( land the period (.I.
Monadic (One-Argument) Form: Factorial !B
The factorial function result is the product of all the positive integers from one to
the number value of the argument. The argument can be a positive numeric scalar,
vector, or other array. The shape of the result is the same as that of the argument:
! 1.c
:I. x 2 x 3 x li.
! I, 2 3 4. 5
2 4
2 1.E
I. 2 B
2 '-1. 1 2 0
The factorial function also works with decimal numbers and zero. When used in this
way, factorial can be defined by use of the mathematical gamma function:
!3, J.4
! 0
'7 I I. '7 33
:I.
If the argument is an
array, the function is extended to each of the elements:
I.
b
c
59 I
Previous Page Next Page