p_norm
Calculate the p-norm of a vector for any p value greater than or equal to 1 to measure vector magnitude in linear algebra.
Instructions
Calculate the p-norm of a vector for any p >= 1 (Domain: linear_algebra.vectors, Category: general)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vector": "<vector>",
"p": "<p>"
},
"name": "p_norm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vector | Yes | ||
| p | Yes |