Newton Math

liveScienceReference

Compute derivatives, integrals, simplifications, and factorizations of algebraic expressions via the Newton API

4tools
0msauth
free tier50 calls/day

Tools

simplifyrequired: expression

Reduce a mathematical expression to its simplest form. Input algebraic notation (e.g., "2^2+2(2)"). Returns simplified result.

Parameters
NameTypeDescription
expressionreqstringMathematical expression to simplify (e.g., "2^2+2(2)", "x^2+2x+1")
▶Try it
deriverequired: expression

Find the derivative of an expression with respect to x. Input algebraic notation (e.g., "x^2"). Returns the derivative.

Parameters
NameTypeDescription
expressionreqstringExpression to differentiate (e.g., "x^2", "sin(x)", "x^3+2x^2+x")
▶Try it
integraterequired: expression

Find the indefinite integral of an expression with respect to x. Input algebraic notation (e.g., "x^2"). Returns antiderivative with constant C.

Parameters
NameTypeDescription
expressionreqstringExpression to integrate (e.g., "x^2", "cos(x)", "x^3+x")
▶Try it
factorrequired: expression

Factor a polynomial into irreducible factors. Input polynomial (e.g., "x^2-1" or "x^2+3x+2"). Returns factored form.

Parameters
NameTypeDescription
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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/newton/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("simplify", {"expression":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("compute derivatives, integrals, simplifications, and factorizations of algebraic expressions via the newton api");