calculus-ai999x — offline, verified calculus solver with step-by-step answers

Install · Capability guide · Evaluation · AI999X on Hugging Face · Website · Support: Buy Me a Coffee

License: Apache-2.0 · Author: Ibnul Jaif Farabi (creator and engineer) · Organization: AI999X · Version 1.0.0

Field: Mathematics & Statistics · Tasks: Question Answering, Token Classification, Text Classification, Sentence Similarity, Feature Extraction

calculus-ai999x is an offline, deterministic Python solver that answers calculus questions with verified results from 71 certified capabilities, gives 374 documented answers identically on Windows and Linux, and refuses rather than guesses when an answer cannot be verified.

calculus-ai999x is a compact, deterministic calculus engine for Python. It reads a question in plain English (or a typed call), picks a certified calculus capability, computes the answer exactly, checks it, and returns the result with its steps, units, LaTeX and assumptions — or an honest refusal that says what is missing. It runs fully offline on any CPU, needs no GPU, no API key and no internet, and is built to give zero wrong answers: when it is not sure, it refuses instead of guessing.

Buy me a coffee License Python Offline

Highlights

  • Verified, not generated. Every answer is computed by a certified calculus capability and checked (substituted back, dimension-checked or compared with an independent computation) before it is returned.
  • Zero wrong answers by design. Seven explicit outcomes — SOLVED, NEEDS_INPUT, AMBIGUOUS, INVALID_INPUT, OUT_OF_SCOPE, UNRECOGNIZED_FORMAT, INTERNAL_ERROR — never a silent guess. Every one of its 374 documented answers is reproduced exactly on every tested platform.
  • Plain-English questions and a guaranteed typed interface. ask() reads documented question forms; solve(capability_id, **inputs) always solves a supported task with valid inputs.
  • Explains itself. Steps, formulas in LaTeX, units, assumptions and the model used, ready for notebooks, tutoring apps and homework checkers.
  • Small and portable. Pure Python (sympy, mpmath); identical answers on Windows and Linux (Python 3.10, 3.11, 3.12, 3.13, 3.14).
  • Coverage: limits, derivatives, integrals, series, Taylor polynomials, multivariable and vector calculus, special functions and numerical differentiation and integration.

Model overview

Property Value
Package calculus-ai999x 1.0.0 (import calculus_ai999x)
Type Deterministic neuro-symbolic calculus engine (rule-based reading + certified symbolic capabilities)
Capabilities 71 certified procedures
Knowledge pack version 1.0.0
Golden answers 374 documented answers, identical on every tested platform
Platforms tested Windows (Python 3.13), Linux x86-64 (Python 3.10, 3.11, 3.12, 3.13, 3.14)
Runtime CPU only, offline; no GPU, no network, no API key
License Apache-2.0
Creator / engineer Ibnul Jaif Farabi
Organization AI999X

Quickstart

pip install calculus-ai999x
# or straight from this repository:
pip install https://huggingface.co/AI999X/calculus-ai999x/resolve/main/dist/calculus_ai999x-1.0.0-py3-none-any.whl
import calculus_ai999x as calculus

calculus.ask("Find the limit of (x^2 - 4)/(x - 2) as x approaches 2.").show()
# -> SOLVED — limit = 4  (limit_at_point)
calculus.ask("Find the absolute maximum and minimum of x^3 - 3x on [0, 2].").show()
# -> SOLVED — absolute_max = 2, absolute_min = -2, critical_points = [1.0]  (extrema_on_interval)
calculus.ask("Find the Taylor polynomial of degree 3 of exp(x) about x = 0 and evaluate it at x = 0.5.").show()
# -> SOLVED — coefficients = [1.0, 1.0, 0.5, 0.16666666666666666], value = 1.64583, function_value = 1.64872, error = 0.00288794  (taylor_polynomial)
calculus.ask("Find the line integral of F = (-y, x) along x = cos(t), y = sin(t) from t = 0 to t = 2pi.").show()
# -> SOLVED — line_integral = 6.28319  (line_integral_vector)
calculus.solve("definite_integral", f="x^2*exp(-x)", a=0, b=2).show()
# -> SOLVED — integral = 0.646647  (definite_integral)
calculus.ask("Who created you?").message
# -> calculus-ai999x was created and engineered by Ibnul Jaif Farabi at AI999X.

Command line: calculus-ai999x "<question>", calculus-ai999x --capabilities. The outputs above were produced by running this exact code on calculus-ai999x 1.0.0.

How every answer is verified

  1. Reading — the question is turned into typed quantities (value, unit, kind, role) and one asked quantity; every stated number must be used or the question is refused.
  2. Planning — only certified capabilities may answer; a capability applies only under the conditions the wording states (for example a pendulum, a liquid at rest, boiling).
  3. Computing — exact symbolic or high-precision numeric evaluation.
  4. Checking — dimensions, substitution back into the defining equation, and agreement between independent readings; any disagreement becomes a refusal, never a number.

Capabilities are certified before they ship: each must reproduce hand-worked reference cases, reject a deliberately wrong variant (a control), and leave every benchmark answer unchanged.

Capabilities

71 certified procedures. A few of them:

  • Procedures: Absolute extrema on a closed interval; Arc length of a graph; Arc length of a parametric curve; Area between two curves; Area enclosed by two curves; Area in polar coordinates; Average rate of change; Average value of a function; Bessel function of the first kind; Beta function; Centroid of a region under a curve; Chebyshev polynomial; Critical points and their classification; Curl; Curvature of a graph; Definite integral; Derivative at a point; Derivative of an integral (fundamental theorem); Directional derivative; Divergence; Double integral over a rectangle; Double integral over a region; Error function; Finite-difference derivative …

calculus_ai999x.templates() lists every question form ask() reads; the capability guide (PDF, every example executed) is included in this repository.

All 71 formulas

Show every formula, by topic

Fourier series

Fourier coefficients

ak=1L∫−LLf(x)cos⁡kπxLdx,bk=1L∫−LLf(x)sin⁡kπxLdx a_k = \frac{1}{L}\int_{-L}^{L} f(x)\cos\frac{k\pi x}{L}dx,\quad b_k = \frac{1}{L}\int_{-L}^{L} f(x)\sin\frac{k\pi x}{L}dx

Derivatives

Derivative at a point

f′(a)=lim⁡h→0f(a+h)−f(a)h f'(a) = \lim_{h\to 0}\frac{f(a+h)-f(a)}{h}

Higher derivative at a point

f(n)(a)=dnfdxn∣x=a f^{(n)}(a) = \frac{d^n f}{dx^n}\Big\vert _{x=a}

Implicit differentiation

dydx=−FxFy \frac{dy}{dx} = -\frac{F_x}{F_y}

Mean value theorem

f′(c)=f(b)−f(a)b−a f'(c) = \frac{f(b) - f(a)}{b - a}

Second derivative at a point

f′′(a)=d2fdx2∣x=a f''(a) = \frac{d^2 f}{dx^2}\Big\vert _{x=a}

Derivatives / concavity

Inflection points

f′′(c)=0 and f′′ changes sign at c f''(c) = 0 \text{ and } f'' \text{ changes sign at } c

Derivatives / curvature

Curvature of a graph

κ=∣f′′(a)∣(1+f′(a)2)3/2 \kappa = \frac{\vert f''(a)\vert }{\left(1 + f'(a)^2\right)^{3/2}}

Derivatives / linearization

Linear approximation

L(x)=f(a)+f′(a) (x−a) L(x) = f(a) + f'(a)\,(x-a)

Derivatives / motion

Velocity and acceleration from position

v=dsdt,a=d2sdt2 v = \frac{ds}{dt},\quad a = \frac{d^2 s}{dt^2}

Derivatives / optimization

Absolute extrema on a closed interval

max⁡[a,b]f=max⁡{f(a),f(b),f(c):f′(c)=0} \max_{[a,b]} f = \max\{f(a), f(b), f(c) : f'(c) = 0\}

Critical points and their classification

f′(c)=0, f′ changes +→−⇒local max f'(c) = 0,\ f' \text{ changes } + \to - \Rightarrow \text{local max}

Derivatives / rates of change

Average rate of change

ΔfΔx=f(b)−f(a)b−a \frac{\Delta f}{\Delta x} = \frac{f(b)-f(a)}{b-a}

Derivatives / tangent and normal lines

Normal line

y=f(a)−1f′(a) (x−a) y = f(a) - \frac{1}{f'(a)}\,(x - a)

Tangent line

y=f(a)+f′(a) (x−a) y = f(a) + f'(a)\,(x - a)

Integrals

Definite integral

∫abf(x) dx \int_a^b f(x)\,dx

Derivative of an integral (fundamental theorem)

ddx∫ag(x)f(t) dt=f(g(x)) g′(x) \frac{d}{dx}\int_a^{g(x)} f(t)\,dt = f(g(x))\,g'(x)

Integrals / Riemann sums

Left Riemann sum

Ln=h∑k=0n−1f(a+kh),h=b−an L_n = h\sum_{k=0}^{n-1} f(a + k h),\quad h = \frac{b-a}{n}

Right Riemann sum

Rn=h∑k=1nf(a+kh),h=b−an R_n = h\sum_{k=1}^{n} f(a + k h),\quad h = \frac{b-a}{n}

Integrals / applications

Average value of a function

favg=1b−a∫abf(x) dx f_{\text{avg}} = \frac{1}{b-a}\int_a^b f(x)\,dx

Integrals / arc length

Arc length of a graph

L=∫ab1+f′(x)2 dx L = \int_a^b \sqrt{1 + f'(x)^2}\,dx

Integrals / area

Area between two curves

A=∫ab∣f(x)−g(x)∣ dx A = \int_a^b \left\vert f(x) - g(x)\right\vert \,dx

Area enclosed by two curves

A=∫x1xn∣f(x)−g(x)∣ dx A = \int_{x_1}^{x_n} \left\vert f(x) - g(x)\right\vert \,dx

Integrals / centroids

Centroid of a region under a curve

xˉ=1A∫abxf(x) dx,yˉ=12A∫abf(x)2 dx \bar x = \frac{1}{A}\int_a^b x f(x)\,dx,\quad \bar y = \frac{1}{2A}\int_a^b f(x)^2\,dx

Integrals / improper integrals

Improper integral to infinity

∫a∞f(x) dx=lim⁡R→∞∫aRf(x) dx \int_a^\infty f(x)\,dx = \lim_{R\to\infty}\int_a^R f(x)\,dx

Integrals / surface area

Surface area of revolution

S=2π∫ab∣f(x)∣1+f′(x)2 dx S = 2\pi\int_a^b \vert f(x)\vert \sqrt{1 + f'(x)^2}\,dx

Integrals / volumes of revolution

Volume of revolution (disk method)

V=π∫abf(x)2 dx V = \pi\int_a^b f(x)^2\,dx

Volume of revolution (shell method)

V=2π∫abx f(x) dx V = 2\pi\int_a^b x\,f(x)\,dx

Volume of revolution (washer method)

V=π∫ab(f(x)2−g(x)2)dx V = \pi\int_a^b \left(f(x)^2 - g(x)^2\right)dx

Limits

Limit at a point

lim⁡x→af(x) \lim_{x\to a} f(x)

Limit at infinity

lim⁡x→∞f(x) \lim_{x\to\infty} f(x)

Multiple integrals

Double integral over a rectangle

∫ab ⁣∫cdf(x,y) dy dx \int_a^b\!\int_c^d f(x,y)\,dy\,dx

Double integral over a region

∫ab ⁣∫g1(x)g2(x)f(x,y) dy dx \int_a^b\!\int_{g_1(x)}^{g_2(x)} f(x,y)\,dy\,dx

Surface area of a graph

A=∬R1+fx2+fy2 dA A = \iint_R \sqrt{1 + f_x^2 + f_y^2}\,dA

Triple integral over a box

∭Bf(x,y,z) dV \iiint_B f(x,y,z)\,dV

Multivariable calculus

Directional derivative

Duf=∇f⋅u∣u∣ D_{\mathbf u} f = \nabla f\cdot\frac{\mathbf u}{\vert \mathbf u\vert }

Gradient

∇f=(fx,fy,fz) \nabla f = \left(f_x, f_y, f_z\right)

Partial derivative

∂f∂x(p) \frac{\partial f}{\partial x}(p)

Tangent plane

z=f(x0,y0)+fx(x−x0)+fy(y−y0) z = f(x_0,y_0) + f_x(x - x_0) + f_y(y - y_0)

Multivariable calculus / change of variables

Jacobian determinant

∂(x,y)∂(u,v)=xuyv−xvyu \frac{\partial(x,y)}{\partial(u,v)} = x_u y_v - x_v y_u

Multivariable calculus / optimization

Second derivative test (two variables)

D=fxxfyy−fxy2 D = f_{xx}f_{yy} - f_{xy}^2

Numerical differentiation

Finite-difference derivative

f′(a)≈f(a+h)−f(a−h)2h f'(a) \approx \frac{f(a+h) - f(a-h)}{2h}

Numerical integration

Gauss-Legendre quadrature

∫abf dx≈b−a2∑i=1nwi f ⁣(a+b2+b−a2xi) \int_a^b f\,dx \approx \frac{b-a}{2}\sum_{i=1}^n w_i\, f\!\left(\frac{a+b}{2} + \frac{b-a}{2}x_i\right)

Midpoint rule

Mn=h∑k=0n−1f(a+(k+12)h) M_n = h\sum_{k=0}^{n-1} f\left(a + (k + \tfrac12) h\right)

Simpson's rule

Sn=h3[f(x0)+4∑odd kf(xk)+2∑even kf(xk)+f(xn)] S_n = \frac{h}{3}\left[f(x_0) + 4\sum_{\text{odd } k} f(x_k) + 2\sum_{\text{even } k} f(x_k) + f(x_n)\right]

Trapezoidal rule

Tn=h2[f(x0)+2∑k=1n−1f(xk)+f(xn)] T_n = \frac{h}{2}\left[f(x_0) + 2\sum_{k=1}^{n-1} f(x_k) + f(x_n)\right]

Numerical methods / root finding

Newton's method

xk+1=xk−f(xk)f′(xk) x_{k+1} = x_k - \frac{f(x_k)}{f'(x_k)}

Parametric curves

Arc length of a parametric curve

L=∫t0t1x′(t)2+y′(t)2 dt L = \int_{t_0}^{t_1}\sqrt{x'(t)^2 + y'(t)^2}\,dt

Slope and concavity of a parametric curve

dydx=y′(t)x′(t),d2ydx2=ddtdydxx′(t) \frac{dy}{dx} = \frac{y'(t)}{x'(t)},\quad \frac{d^2y}{dx^2} = \frac{\frac{d}{dt}\frac{dy}{dx}}{x'(t)}

Polar curves

Area in polar coordinates

A=12∫αβr(θ)2 dθ A = \frac{1}{2}\int_{\alpha}^{\beta} r(\theta)^2\,d\theta

Series

Partial sum of a geometric series

Sn=a 1−rn1−r S_n = a\,\frac{1 - r^n}{1 - r}

Ratio test

L=lim⁡n→∞∣an+1an∣ L = \lim_{n\to\infty}\left\vert \frac{a_{n+1}}{a_n}\right\vert

Sum of an arithmetic series

Sn=n2(2a1+(n−1)d) S_n = \frac{n}{2}\left(2a_1 + (n-1)d\right)

Sum of an infinite geometric series

∑n=0∞arn=a1−r \sum_{n=0}^{\infty} a r^n = \frac{a}{1-r}

Sum of an infinite series

∑n=k∞an \sum_{n=k}^{\infty} a_n

Series / Taylor

Taylor polynomial

Pn(x)=∑k=0nf(k)(a)k!(x−a)k P_n(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k

Special functions

Bessel function of the first kind

Jn(x)=∑m=0∞(−1)mm! (m+n)!(x2)2m+n J_n(x) = \sum_{m=0}^{\infty}\frac{(-1)^m}{m!\,(m+n)!}\left(\frac{x}{2}\right)^{2m+n}

Beta function

B(a,b)=∫01ta−1(1−t)b−1dt=Γ(a)Γ(b)Γ(a+b) B(a,b) = \int_0^1 t^{a-1}(1-t)^{b-1}dt = \frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}

Error function

erf⁡(x)=2π∫0xe−t2 dt \operatorname{erf}(x) = \frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2}\,dt

Gamma function

Γ(x)=∫0∞tx−1e−t dt \Gamma(x) = \int_0^\infty t^{x-1}e^{-t}\,dt

Regularized incomplete gamma functions

P(a,x)=1Γ(a)∫0xta−1e−t dt P(a,x) = \frac{1}{\Gamma(a)}\int_0^x t^{a-1}e^{-t}\,dt

Special functions / orthogonal polynomials

Chebyshev polynomial

Tk+1(x)=2x Tk(x)−Tk−1(x) T_{k+1}(x) = 2x\,T_k(x) - T_{k-1}(x)

Legendre polynomial

(k+1)Pk+1(x)=(2k+1) x Pk(x)−k Pk−1(x) (k+1)P_{k+1}(x) = (2k+1)\,x\,P_k(x) - k\,P_{k-1}(x)

Special functions / series

Riemann zeta function

ζ(s)=∑n=1∞1ns \zeta(s) = \sum_{n=1}^{\infty} \frac{1}{n^s}

Vector calculus

Curl

∇×F=(Ry−Qz, Pz−Rx, Qx−Py) \nabla\times\mathbf F = (R_y - Q_z,\ P_z - R_x,\ Q_x - P_y)

Divergence

∇⋅F=Px+Qy+Rz \nabla\cdot\mathbf F = P_x + Q_y + R_z

Green's theorem on a rectangle

∮CP dx+Q dy=∬R(Qx−Py)dA \oint_C P\,dx + Q\,dy = \iint_R \left(Q_x - P_y\right)dA

Laplacian

∇2f=fxx+fyy+fzz \nabla^2 f = f_{xx} + f_{yy} + f_{zz}

Line integral of a vector field

∫CF⋅dr=∫t0t1(P x′(t)+Q y′(t))dt \int_C \mathbf F\cdot d\mathbf r = \int_{t_0}^{t_1} \left(P\,x'(t) + Q\,y'(t)\right)dt

Line integral with respect to arc length

∫Cf ds=∫t0t1f(x(t),y(t))x′(t)2+y′(t)2 dt \int_C f\,ds = \int_{t_0}^{t_1} f(x(t),y(t))\sqrt{x'(t)^2 + y'(t)^2}\,dt

Outward flux through a box (divergence theorem)

∯SF⋅n dS=∭B∇⋅F dV \oiint_S \mathbf F\cdot\mathbf n\,dS = \iiint_B \nabla\cdot\mathbf F\,dV

Out of scope

  • Open-ended explanation, essay writing or tutoring dialogue: it is a solver, not a chatbot.
  • Questions outside its certified calculus capabilities, and any question whose stated numbers it cannot all use — it refuses with the reason instead.
  • High-stakes engineering, medical or legal decisions without independent review.

Limitations

  • It answers what its certified capabilities cover (limits, derivatives, integrals, series, Taylor polynomials, multivariable and vector calculus, special functions and numerical differentiation and integration); anything else is refused with a reason.
  • ask() reads documented question forms and common phrasings; unusual wording may be refused — use solve() for guaranteed results.
  • Results are as correct as the certified relations and their stated conditions; a certified relation is a checked model, not a claim about every physical situation.

Citation

@software{calculus_ai999x_1_0_0,
  title  = {calculus-ai999x: an offline, verified calculus solver},
  author = {Farabi, Ibnul Jaif}, organization = {AI999X},
  year   = {2026}, version = {1.0.0},
  url    = {https://huggingface.co/AI999X/calculus-ai999x}
}

Contact

Questions, bug reports and requests: open a discussion on https://huggingface.co/AI999X/calculus-ai999x/discussions or visit https://ai999x.com.

Support the project

calculus-ai999x is free and open source. If it helps you, you can support further development on Buy Me a Coffee.

Created and engineered by Ibnul Jaif Farabi · AI999X · ai999x.com

Downloads last month
25
Safetensors
Model size
4.72M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collections including AI999X/calculus-ai999x

Evaluation results

  • identical on every platform on Golden answers (374 documented questions, Windows + Linux Python 3.10-3.14)
    self-reported
    1.000