failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / cp
1 NAME
2     cp - cross product of two 3 element vectors
3
4 SYNOPSIS
5     cp(x, y)
6
7 TYPES
8     x, y        1-dimensional matrices with 3 elements
9
10     return      1-dimensional matrix with 3 elements
11
12 DESCRIPTION
13     Calculate the product of two 3 1-dimensional matrices.
14     If x has elements (x0, x1, x2), and y has elements (y0, y1, y2),
15     cp(x,y) returns the matrix of type [0:2] with elements:
16
17         {x1 * y2 - x2 * y1, x3 * y1 - x1 * y3, x1 * y2 - x2 * y1}
18
19 EXAMPLE
20     > mat x[3] = {2,3,4}
21     > mat y[3] = {3,4,5}
22     > print cp(x,y)
23
24     mat [3] (3 elements, 3 nonzero):
25       [0] = -1
26       [1] = 2
27       [2] = -1
28
29 LIMITS
30     The components of the matrices are to be of types for which the
31     required algebraic operations have been defined.
32
33 LINK LIBRARY
34     MATRIX *matcross(MATRIX *x, MATRIX *y)
35
36 SEE ALSO
37     dp
38