Newton Math

live Math

Simplify, differentiate, integrate, and factor mathematical expressions via the Newton API

4 tools
0ms auth
free tier 50 calls/day

Tools

simplify required: expression

Simplify a mathematical expression (e.g., "2^2+2(2)" → "8"). Supports standard algebraic notation.

Parameters
Name Type Description
expression req string Mathematical expression to simplify (e.g., "2^2+2(2)", "x^2+2x+1")
Try it
derive required: expression

Compute the derivative of a mathematical expression with respect to x (e.g., "x^2" → "2 x")

Parameters
Name Type Description
expression req string Expression to differentiate (e.g., "x^2", "sin(x)", "x^3+2x^2+x")
Try it
integrate required: expression

Compute the indefinite integral of a mathematical expression with respect to x (e.g., "x^2" → "(1/3)x^3")

Parameters
Name Type Description
expression req string Expression to integrate (e.g., "x^2", "cos(x)", "x^3+x")
Try it
factor required: expression

Factor a polynomial expression (e.g., "x^2-1" → "(x-1)(x+1)", "x^2+3x+2" → "(x+1)(x+2)")

Parameters
Name Type Description
expression req string Polynomial 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("simplify, differentiate, integrate, and factor mathematical expressions via the newton api");

Related packs

Other Pipeworx packs in the same categories (Math):