Matrix multiplication, determinant and inverse
Calculate a determinant and inverse, or multiply compatible small matrices.
Calculate the dot product, cross product, lengths and angle of two real 2D or 3D vectors.
Saved in this browser. Before changing devices, export a backup from My tools.
The angle is undefined if either vector has zero length. Results are floating-point approximations.
Dot product is the sum of corresponding coordinate products; length is the square root of the sum of squares. For nonzero vectors the angle is the inverse cosine of the dot product divided by their lengths, from 0 to 180 degrees. A zero vector has no defined angle, and a zero dot product alone does not make it perpendicular. Coordinates range from −1,000,000 to 1,000,000 with up to six decimal places. Results are floating-point approximations; projection is not calculated. The cross product uses A × B order, and its length is the parallelogram area.
Enter zero for both z coordinates when using 2D vectors; both vectors must have the same dimensionality.
If either vector is zero the dot product exists but its angle is undefined. Results are floating-point approximations.
References:OpenStax: cross products and area、National Academy for Educational Research: vector dot product、National Central University: vector dot product
Calculate the dot product, each length and the angle between two real two- or three-dimensional vectors.
Enter x, y and z coordinates for both vectors. For two-dimensional vectors set both z coordinates to zero.
Multiply corresponding components and sum for the dot product; take the square root of the sum of squares for length.
For A=(3,4,0) and B=(4,-3,0), the dot product is 0, both lengths are 5, and the angle is 90 degrees.
A zero dot product means nonzero vectors are perpendicular. The angle of a zero vector is undefined.
Coordinates are limited to ±1,000,000 and six decimal places. Results are approximate; projection is not calculated. A × B magnitude is the parallelogram area.
You are offline. Calculations use the version already downloaded.