vector_cross_product
Calculates the cross product of two 2D or 3D vectors. Returns the resulting vector for use in physics, engineering, and 3D graphics.
Instructions
Computes the cross product of two 2D or 3D vectors.
Args: vector_a: The first vector as a list of numbers. vector_b: The second vector as a list of numbers.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> vector_cross_product([1, 2, 3], [4, 5, 6]) {'result': [-3, 6, -3]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector_a | Yes | ||
| vector_b | Yes |