calculate_curl
Compute the curl of a vector field in a specified coordinate system using SymPy. Input a vector field key to generate a curl expression for analyzing rotational behavior in vector calculus.
Instructions
Calculates the curl of a vector field using SymPy's curl function.
Args:
vector_field_key: The key of the vector field expression.
Example:
# First create a coordinate system
create_coordinate_system("R")
# Create a vector field F = (y, -x, 0)
vector_field = create_vector_field("R", "R_y", "-R_x", "0")
# Calculate curl
curl_result = calculate_curl(vector_field)
# Returns (0, 0, -2)
Returns:
A key for the curl expression.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector_field_key | Yes |