sqrt_cf_expansion
Calculate the continued fraction expansion of square roots to represent √n as periodic sequences for non-perfect squares, useful in number theory and approximation problems.
Instructions
Find continued fraction expansion of √n (periodic for non-perfect squares). (Domain: arithmetic, Category: continued_fractions)
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": {
"n": "<n>"
},
"name": "sqrt_cf_expansion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes |