Newton Math
liveScienceReferenceCompute derivatives, integrals, simplifications, and factorizations of algebraic expressions via the Newton API
Tools
simplifyrequired: expressionReduce a mathematical expression to its simplest form. Input algebraic notation (e.g., "2^2+2(2)"). Returns simplified result.
expressionreqstringMathematical expression to simplify (e.g., "2^2+2(2)", "x^2+2x+1")Try it
deriverequired: expressionFind the derivative of an expression with respect to x. Input algebraic notation (e.g., "x^2"). Returns the derivative.
expressionreqstringExpression to differentiate (e.g., "x^2", "sin(x)", "x^3+2x^2+x")Try it
integraterequired: expressionFind the indefinite integral of an expression with respect to x. Input algebraic notation (e.g., "x^2"). Returns antiderivative with constant C.
expressionreqstringExpression to integrate (e.g., "x^2", "cos(x)", "x^3+x")Try it
factorrequired: expressionFactor a polynomial into irreducible factors. Input polynomial (e.g., "x^2-1" or "x^2+3x+2"). Returns factored form.
expressionreqstringPolynomial expression to factor (e.g., "x^2-1", "x^2+3x+2")Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/newton/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/newton/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"simplify","arguments":{"expression": "x^2 + 2x"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("simplify", {"expression":"example"});// Or ask in plain English:
const answer = await px.ask("compute derivatives, integrals, simplifications, and factorizations of algebraic expressions via the newton api");