Skip to content

API Reference parrot_tools.calculator.operations.calculus

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.calculator.operations.calculus

View source

Calculus operations.

Function numerical_derivative

Calculate numerical derivative using central difference.

numerical_derivative(expression: str = None, x: float = None, h: float = 1e-05, **kwargs) -> float

Parameter Type Default Description
expression str None Python expression as string (e.g., "x**2 + 3*x")
x float None Point at which to evaluate derivative
h float 1e-05 Step size for numerical differentiation
**kwargs {}

Returns: float

Function numerical_integral

Calculate numerical integral using Simpson's rule.

numerical_integral(expression: str = None, a: float = None, b: float = None, n: int = 1000, **kwargs) -> float

Parameter Type Default Description
expression str None Python expression as string
a float None Lower bound
b float None Upper bound
n int 1000 Number of intervals (must be even)
**kwargs {}

Returns: float

Alias operation

Re-exported from parrot_tools.calculator.operations.operation.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally