You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3049a37
Browse filesBrowse the repository at this point in the historyBrowse files
laplacian, jacobian and hessian were reserved by name in #2184 and are now computed when they are
parsed, as det is. Each is made of derivative nodes and needs no node of its own.
laplacian(f, [x, y, z]) is the sum of the second derivatives of a scalar f. jacobian(F, [x, y]) is
the matrix of the first derivatives of F's components, with a row for each component and a column
for each variable; a scalar F is one row. hessian(f, [x, y]) is the matrix of the second
derivatives of a scalar f, the entry in row i and column j being the derivative in x_i of the
derivative in x_j, as the definition writes it.
The variables are a vector of distinct names written out, or a single name. A set is refused,
having no order to give the columns, and so are a constant, a repeated name, and a vector or matrix
as the function of a Laplacian or a Hessian. det(jacobian([r cos(t), r sin(t)], [r, t]))
simplifies to r, and the Laplacian of 1/r vanishes in space.
The syntax page and the MCP server's syntax document describe them, and the native smoke test
evaluates two of them.
Part of #2182.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
| `"jacobian([x y, x + y], [x, y])".ToEntity().Simplify()` | throws `UnhandledParseException` | `[[y, x], [1, 1]]` |
472
+
| `"hessian(x^3 y^2, [x, y])".ToEntity().Simplify()` | throws `UnhandledParseException` | `[[6 * x * y ^ 2, 6 * x ^ 2 * y], [6 * x ^ 2 * y, 2 * x ^ 3]]` |
473
+
| `"jacobian(x y, {x, y})".ToEntity()` | throws `UnhandledParseException` | throws `InvalidArgumentParseException`: a set has no order for the columns |
474
+
458
475
### A subscript may have a subscript
459
476
460
477
**Not silent: what was a parse error is a name.** A name took at most one `_`, so `x_1_2` and `X_a_beta` were lexer
0 commit comments