math-foundations-ai999x — offline, verified math foundations 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

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

math-foundations-ai999x is a compact, deterministic math foundations engine for Python. It reads a question in plain English (or a typed call), picks a certified math foundations 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 math foundations 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 625 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: arithmetic, algebra, functions, exponentials and logarithms, trigonometry, precalculus and complex numbers.

Model overview

Property Value
Package math-foundations-ai999x 1.0.0 (import math_foundations_ai999x)
Type Deterministic neuro-symbolic math foundations engine (rule-based reading + certified symbolic capabilities)
Capabilities 19 certified derivations, 100 certified procedures
Knowledge pack version 1.0.2
Golden answers 625 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 math-foundations-ai999x
# or straight from this repository:
pip install https://huggingface.co/AI999X/math-foundations-ai999x/resolve/main/dist/math_foundations_ai999x-1.0.0-py3-none-any.whl
import math_foundations_ai999x as math_foundations

math_foundations.ask("Solve x^2 - 5x + 6 = 0.").show()
# -> SOLVED — x1 = 2, x2 = 3, discriminant = 1  (quadratic_roots)
math_foundations.ask("In triangle ABC, a = 8, b = 10 and A = 40 degrees. Solve the triangle.").show()
# -> SOLVED — count = 2, B1 = 53.4641, C1 = 86.5359, c1 = 12.423  (law_of_sines_ssa)
math_foundations.ask("Compute (3 + 2i) / (1 - i).").show()
# -> SOLVED — re = 0.5, im = 2.5  (complex_arithmetic)
math_foundations.ask("Find the coefficient of x^3 in (2x - 1)^5.").show()
# -> SOLVED — coefficient = 80, binomial = 10  (binomial_coefficient_term)
math_foundations.solve("de_moivre_power", a=1, b=1, n=8).show()
# -> SOLVED — re = 16, im = 0, modulus = 16, argument_deg = 0  (de_moivre_power)
math_foundations.ask("Who created you?").message
# -> math-foundations-ai999x was created and engineered by Ibnul Jaif Farabi at AI999X.

Command line: math-foundations-ai999x "<question>", math-foundations-ai999x --capabilities. The outputs above were produced by running this exact code on math-foundations-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

19 certified derivations, 100 certified procedures. A few of them:

  • Derivations: area of rectangle; associative property of addition; cramer rule x solution; determinant cramer two variables; difference of cubes factorization; difference of squares; distributive property verification; elimination method identity; elimination solution two variables; linear equation solution formula; partial fraction decomposition linear factors; perfect square trinomial; product of sums; quadratic vertex form conversion; radical equation squaring; square of difference; substitution method identity; substitution solution two variables; sum of cubes factorization
  • Procedures: Absolute value inequality |ax + b| compared with c; Add rational expressions with same denominator; Amount remaining after radioactive decay (half-life); Area of a triangle from its three sides (Heron); Arithmetic with complex numbers; Arithmetic with fractions; Asymptotes of a linear rational function; Average rate of change between two points; Average rate of change of a function between two inputs; Centre and radius of a circle from its general equation; Coefficient of a term in a binomial expansion; Combinations and permutations; Composition of two linear functions; Compound interest; Continuous exponential growth or decay; Degrees to radians; Determinant and inverse of a 2 by 2 matrix; Determinant of 2x2 matrix; Discriminant of a quadratic; Distance between two points; Distance from a point to a line; Divide a quantity in a given ratio; Domain of a square-root function; Dot product and angle between two vectors …

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

All 100 formulas

Show every formula, by topic

Matrices and linear systems

Determinant of 2x2 matrix

det=ad−bc \text{det} = a d - b c

Matrix scalar multiple definition

b11=sa11,b12=sa12,b21=sa21,b22=sa22 b_{11} = s a_{11},\quad b_{12} = s a_{12},\quad b_{21} = s a_{21},\quad b_{22} = s a_{22}

Rational expressions

Add rational expressions with same denominator

sum num=num1+num2,sum den=den \text{sum num} = \text{num}_{1} + \text{num}_{2},\quad \text{sum den} = \text{den}

Multiply rational expressions

prod num=num1num2,prod den=den1den2 \text{prod num} = \text{num}_{1} \text{num}_{2},\quad \text{prod den} = \text{den}_{1} \text{den}_{2}

Algebra / absolute value

Absolute value inequality |ax + b| compared with c

∣ax+b∣<c  ⟺  −c<ax+b<c,∣ax+b∣>c  ⟺  ax+b<−c or ax+b>c \vert ax+b\vert < c \iff -c < ax+b < c,\qquad \vert ax+b\vert > c \iff ax+b < -c \ \text{or}\ ax+b > c

Algebra / factoring

Factor a quadratic over the integers

ax2+bx+c=g (px+q)(rx+s) ax^2+bx+c = g\,(px+q)(rx+s)

Algebra / inequalities

Quadratic inequality

a(x−r1)(x−r2)<0  ⟺  r1<x<r2  (a>0) a(x - r_1)(x - r_2) < 0 \iff r_1 < x < r_2 \ \ (a > 0)

Algebra / polynomial division

Polynomial long division

p(x)=q(x) d(x)+r(x),deg⁡r<deg⁡d p(x) = q(x)\,d(x) + r(x),\quad \deg r < \deg d

Synthetic division and the remainder theorem

p(x)=(x−r) q(x)+p(r) p(x) = (x - r)\,q(x) + p(r)

Algebra / polynomial equations

Rational roots of a polynomial (rational root theorem)

anxn+⋯+a0=0, x=pq⇒p∣a0, q∣an a_n x^n + \dots + a_0 = 0,\ x = \tfrac{p}{q} \Rightarrow p \mid a_0,\ q \mid a_n

Algebra / radical equations

Radical equation sqrt(ax + b) = cx + d

ax+b=cx+d  ⇒  ax+b=(cx+d)2, cx+d≥0 \sqrt{ax+b} = cx+d \;\Rightarrow\; ax+b = (cx+d)^2,\ cx+d \ge 0

Algebra / rational equations

Rational equation a/(x + b) = c/(x + d)

ax+b=cx+d  ⇒  x=cb−ada−c \frac{a}{x+b} = \frac{c}{x+d} \;\Rightarrow\; x = \frac{cb - ad}{a - c}

Algebra / rational expressions

Partial fractions (two distinct linear factors)

px+q(x−r1)(x−r2)=Ax−r1+Bx−r2,A=pr1+qr1−r2 \frac{px+q}{(x-r_1)(x-r_2)} = \frac{A}{x-r_1} + \frac{B}{x-r_2},\quad A = \frac{pr_1+q}{r_1-r_2}

Algebra / sequences and series

Sum of an infinite geometric series

∑k=0∞ark=a1−r,∣r∣<1 \sum_{k=0}^{\infty} a r^k = \frac{a}{1-r},\quad \vert r\vert < 1

Algebra / systems of linear equations

System of three linear equations

A x=d,x=A−1d A\,\mathbf{x} = \mathbf{d},\quad \mathbf{x} = A^{-1}\mathbf{d}

Arithmetic / fractions

Arithmetic with fractions

ab±cd=ad±cbbd,ab⋅cd=acbd,ab÷cd=adbc \frac{a}{b} \pm \frac{c}{d} = \frac{ad \pm cb}{bd},\quad \frac{a}{b}\cdot\frac{c}{d} = \frac{ac}{bd},\quad \frac{a}{b} \div \frac{c}{d} = \frac{ad}{bc}

Arithmetic / order of operations

Evaluate an arithmetic expression (order of operations)

( )  →  ab  →  × ÷  →  + − \text{( )} \;\to\; a^{b} \;\to\; \times\,\div \;\to\; +\,-

Arithmetic / percentages

Percent change (increase or decrease)

Δ%=new−oldold⋅100 \Delta\% = \frac{\mathrm{new}-\mathrm{old}}{\mathrm{old}}\cdot 100

Percent of a number

p100 x \frac{p}{100}\,x

What percent one number is of another

p=100 partwhole p = 100\,\frac{\mathrm{part}}{\mathrm{whole}}

Whole from a part and its percentage

w=100 partp w = \frac{100\,\mathrm{part}}{p}

Arithmetic / ratios and proportions

Divide a quantity in a given ratio

parti=total⋅ri∑jrj \mathrm{part}_i = \mathrm{total}\cdot\frac{r_i}{\sum_j r_j}

Solve a proportion

n1d1=n2d2  ⟺  n1d2=n2d1 \frac{n_1}{d_1} = \frac{n_2}{d_2} \iff n_1 d_2 = n_2 d_1

Unit rates and the better buy

unit rate=amountquantity \text{unit rate} = \frac{\text{amount}}{\text{quantity}}

Arithmetic / rounding

Round to decimal places

round(x,n)=sgn⁡(x) ⌊∣x∣ 10n+12⌋10n \mathrm{round}(x, n) = \operatorname{sgn}(x)\,\frac{\lfloor \vert x\vert \,10^{n} + \tfrac12 \rfloor}{10^{n}}

Round to significant figures

round(x, n−1−⌊log⁡10∣x∣⌋) \mathrm{round}\big(x,\ n - 1 - \lfloor \log_{10}\vert x\vert \rfloor\big)

Arithmetic / scientific notation

Scientific notation

x=m×10e,1≤∣m∣<10 x = m \times 10^{e},\quad 1 \le \vert m\vert < 10

Complex numbers

Product and modulus of complex numbers

Re⁡=ac−bd,Im⁡=ad+bc,modulus2=(a2+b2)(c2+d2) \operatorname{Re} = a c - b d,\quad \operatorname{Im} = a d + b c,\quad \text{modulus}^{2} = \left(a^{2} + b^{2}\right) \left(c^{2} + d^{2}\right)

Complex numbers / De Moivre's theorem

Power of a complex number (De Moivre)

[r(cos⁡θ+isin⁡θ)]n=rn(cos⁡nθ+isin⁡nθ) \left[r(\cos\theta + i\sin\theta)\right]^n = r^n(\cos n\theta + i\sin n\theta)

Complex numbers / arithmetic

Arithmetic with complex numbers

a+bic+di=(ac+bd)+(bc−ad)ic2+d2 \frac{a+bi}{c+di} = \frac{(ac+bd) + (bc-ad)i}{c^2+d^2}

Complex numbers / polar form

Modulus, argument and polar form of a complex number

z=r(cos⁡θ+isin⁡θ),r=a2+b2 z = r(\cos\theta + i\sin\theta),\quad r = \sqrt{a^2+b^2}

Complex numbers / roots

The n-th roots of a complex number

wk=rn(cos⁡θ+2πkn+isin⁡θ+2πkn) w_k = \sqrt[n]{r}\left(\cos\frac{\theta + 2\pi k}{n} + i\sin\frac{\theta + 2\pi k}{n}\right)

Conic sections

Centre and radius of a circle from its general equation

(t−h)2+(w−k)2−rad2=t2+w2+ddt+eew+ff \left(t - h\right)^{2} + \left(w - k\right)^{2} - \text{rad}^{2} = t^{2} + w^{2} + d_{d} t + e_{e} w + f_{f}

Coordinate plane

Distance between two points

dist2=(x2−x1)2+(y2−y1)2 \text{dist}^{2} = \left(x_{2} - x_{1}\right)^{2} + \left(y_{2} - y_{1}\right)^{2}

Counting and probability

Combinations and permutations

(nk)=n!k! (n−k)!,P(n,k)=n!(n−k)! \binom{n}{k} = \frac{n!}{k!\,(n-k)!},\quad P(n,k) = \frac{n!}{(n-k)!}

Exponential functions

Compound interest

ln⁡(amount)=ln⁡(principal)+ntln⁡(1+rn) \ln\left(\text{amount}\right) = \ln\left(\text{principal}\right) + n t \ln\left(1 + \frac{r}{n}\right)

Exponential models

Doubling time of exponential growth

ktd=ln⁡(2) k t_{d} = \ln\left(2\right)

Exponentials and logarithms / exponential equations

Exponential equation ab^(cx + d) = k*

x=log⁡b(k/a)−dc x = \frac{\log_b(k/a) - d}{c}

Exponentials and logarithms / growth and decay

Amount remaining after radioactive decay (half-life)

N(t)=N0(12)t/T N(t) = N_0 \left(\tfrac12\right)^{t/T}

Continuous exponential growth or decay

N(t)=N0 ekt N(t) = N_0\,e^{kt}

Doubling time at a percentage growth rate

T=ln⁡2ln⁡(1+r100) T = \frac{\ln 2}{\ln\left(1 + \frac{r}{100}\right)}

Exponentials and logarithms / laws of logarithms

Laws of logarithms (product, quotient, power)

log⁡b ⁣(MpNq)=plog⁡bM+qlog⁡bN \log_b\!\left(M^{p} N^{q}\right) = p\log_b M + q\log_b N

Exponentials and logarithms / logarithmic equations

Logarithmic equation log_b(cx + d) = k

log⁡b(cx+d)=k  ⟺  cx+d=bk \log_b(cx+d) = k \iff cx + d = b^{k}

Exponentials and logarithms / logarithms

Evaluate a logarithm

log⁡bx=ln⁡xln⁡b \log_b x = \frac{\ln x}{\ln b}

Exponents and logarithms

Solution of an exponential equation

xln⁡(b)=ln⁡(y) x \ln\left(b\right) = \ln\left(y\right)

Factoring

Factoring a monic quadratic

(t+p)(t+q)=t2+bt+c \left(t + p\right) \left(t + q\right) = t^{2} + b t + c

Functions

Average rate of change of a function between two inputs

arc(xend−xstart)=fx,end−fx,start \text{arc} \left(x_{\text{end}} - x_{\text{start}}\right) = f_{x,end} - f_{x,start}

Composition of two linear functions

mt+k=a(ct+d)+b m t + k = a \left(c t + d\right) + b

Functions / composition

Value of a composite function

(f∘g)(x0)=f(g(x0)) (f\circ g)(x_0) = f\big(g(x_0)\big)

Functions / domain

Domain of a square-root function

ax+b≥0,cx+d≠0 ax + b \ge 0,\quad cx + d \ne 0

Functions / evaluation

Evaluate a function at a number

f(x0) f(x_0)

Functions / inverse functions

Inverse of a linear function

f−1(x)=x−ba f^{-1}(x) = \frac{x - b}{a}

Functions / lines

Distance from a point to a line

d=∣ax0+by0+c∣a2+b2 d = \frac{\vert a x_0 + b y_0 + c\vert }{\sqrt{a^2 + b^2}}

Intercepts and slope of a line

ax+by=c:x0=ca, y0=cb, m=−ab ax + by = c:\quad x_0 = \frac{c}{a},\ y_0 = \frac{c}{b},\ m = -\frac{a}{b}

Functions / piecewise functions

Evaluate a piecewise function

f(x)={e1(x)x<ce2(x)x≥c f(x) = \begin{cases} e_1(x) & x < c \\ e_2(x) & x \ge c \end{cases}

Functions / transformations

Image of a point under a graph transformation

(x0,y0)↦(x0B+h,  Ay0+k) (x_0, y_0) \mapsto \left(\frac{x_0}{B} + h,\; A y_0 + k\right)

Inequalities

Solution of a linear inequality

ax0+b=c,sa2=a a x_{0} + b = c,\quad s \sqrt{a^{2}} = a

Linear and absolute value inequalities

Solution interval of |x - c| < d

upper−lower=2d,upper+lower=2c \text{upper} - \text{lower} = 2 d,\quad \text{upper} + \text{lower} = 2 c

Solution set of |x - c| > d

right limit−left limit=2d,right limit+left limit=2c \text{right limit} - \text{left limit} = 2 d,\quad \text{right limit} + \text{left limit} = 2 c

Linear equations

Root of a linear equation

ax+b=c a x + b = c

Linear functions

Average rate of change between two points

m(x2−x1)=y2−y1 m \left(x_{2} - x_{1}\right) = y_{2} - y_{1}

Line through two points

mx1+k=y1,mx2+k=y2 m x_{1} + k = y_{1},\quad m x_{2} + k = y_{2}

Slope of a perpendicular line

mmperp=−1 m m_{\text{perp}} = -1

y-intercept of a line from its slope and a point

y1=mx1+b y_{1} = m x_{1} + b

Logarithms

Solution of a basic logarithmic equation

ln⁡(x)=cln⁡(b) \ln\left(x\right) = c \ln\left(b\right)

Matrices

Determinant and inverse of a 2 by 2 matrix

det=ad−bc,ai11+bi21=1,ai12+bi22=0,ci11+di21=0,ci12+di22=1 \text{det} = a d - b c,\quad a i_{11} + b i_{21} = 1,\quad a i_{12} + b i_{22} = 0,\quad c i_{11} + d i_{21} = 0,\quad c i_{12} + d i_{22} = 1

Other equations

Solutions of an absolute value equation

ax1+b=c,ax2+b=−c a x_{1} + b = c,\quad a x_{2} + b = -c

Polynomial equations / cubic and quartic equations

Roots of a cubic equation

ax3+bx2+cx+d=0 a x^3 + b x^2 + c x + d = 0

Roots of a quartic equation

ax4+bx3+cx2+dx+e=0 a x^4 + b x^3 + c x^2 + d x + e = 0

Polynomial equations / quadratic equations

Discriminant of a quadratic

Δ=b2−4ac \Delta = b^2 - 4ac

Roots of a quadratic equation

x=−b±b2−4ac2a x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Polynomials

Product of two binomials

p2t2+p1t+p0=(at+b)(ct+d) p_{2} t^{2} + p_{1} t + p_{0} = \left(a t + b\right) \left(c t + d\right)

Precalculus / binomial theorem

Coefficient of a term in a binomial expansion

(ax+b)n=∑k=0n(nk)akbn−kxk (ax + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^k b^{n-k} x^k

Precalculus / conic sections

Foci, axes and eccentricity of an ellipse

(x−h)2A+(y−k)2B=1,c2=a2−b2,e=ca \frac{(x-h)^2}{A} + \frac{(y-k)^2}{B} = 1,\quad c^2 = a^2 - b^2,\quad e = \frac{c}{a}

Foci, eccentricity and asymptotes of a hyperbola

(x−h)2a2−(y−k)2b2=1,c2=a2+b2 \frac{(x-h)^2}{a^2} - \frac{(y-k)^2}{b^2} = 1,\quad c^2 = a^2 + b^2

Focus and directrix of a parabola

(x−h)2=4p(y−k): F=(h,k+p), y=k−p (x-h)^2 = 4p(y-k):\ F = (h, k+p),\ y = k - p

Precalculus / polar coordinates

Polar to rectangular coordinates

x=rcos⁡θ,y=rsin⁡θ x = r\cos\theta,\quad y = r\sin\theta

Rectangular to polar coordinates

r=x2+y2,tan⁡θ=yx r = \sqrt{x^2+y^2},\quad \tan\theta = \frac{y}{x}

Precalculus / vectors

Dot product and angle between two vectors

u⋅v=∣u∣∣v∣cos⁡θ \mathbf u\cdot\mathbf v = \vert \mathbf u\vert \vert \mathbf v\vert \cos\theta

Magnitude and direction of a vector

∣v∣=x2+y2,θ=atan2⁡(y,x) \vert \mathbf v\vert = \sqrt{x^2 + y^2},\quad \theta = \operatorname{atan2}(y, x)

Quadratic functions

Vertex form of a quadratic function

a(t−h)2+k=at2+bt+c a \left(t - h\right)^{2} + k = a t^{2} + b t + c

Rational functions

Asymptotes of a linear rational function

cva+d=0,cha=a c v_{a} + d = 0,\quad c h_{a} = a

Real numbers and algebraic expressions

Perimeter of a rectangle

p−2h=2w p - 2 h = 2 w

Sequences

Term and partial sum of a geometric sequence

gn=g1qn−1,sn(1−q)=g1(1−qn) g_{n} = g_{1} q^{n - 1},\quad s_{n} \left(1 - q\right) = g_{1} \left(1 - q^{n}\right)

Term and partial sum of an arithmetic sequence

an=a1+(n−1)d,2sn=n(a1+an) a_{n} = a_{1} + \left(n - 1\right) d,\quad 2 s_{n} = n \left(a_{1} + a_{n}\right)

Systems of equations

Solution of two linear equations in two unknowns

ax+by=c,dx+ey=f a x + b y = c,\quad d x + e y = f

The coordinate plane and graphs

Midpoint of a line segment

2mx=x1+x2,2my=y1+y2 2 m_{x} = x_{1} + x_{2},\quad 2 m_{y} = y_{1} + y_{2}

Trigonometry / angle measure

Degrees to radians

θrad=θdeg⁡⋅π180 \theta_{\mathrm{rad}} = \theta_{\deg}\cdot\frac{\pi}{180}

Radians to degrees

θdeg⁡=θrad⋅180π \theta_{\deg} = \theta_{\mathrm{rad}}\cdot\frac{180}{\pi}

Trigonometry / identities

Trigonometric values from one value and the quadrant

cos⁡t=±1−sin⁡2t,sin⁡2t=2sin⁡tcos⁡t,cos⁡2t=cos⁡2t−sin⁡2t \cos t = \pm\sqrt{1 - \sin^2 t},\quad \sin 2t = 2\sin t\cos t,\quad \cos 2t = \cos^2 t - \sin^2 t

Trigonometry / oblique triangles

Law of cosines (three sides)

cos⁡A=b2+c2−a22bc \cos A = \frac{b^2 + c^2 - a^2}{2bc}

Law of cosines (two sides and the included angle)

a2=b2+c2−2bccos⁡A a^2 = b^2 + c^2 - 2bc\cos A

Law of sines (two angles and a side)

asin⁡A=bsin⁡B=csin⁡C \frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}

Law of sines, the ambiguous case (two sides and a non-included angle)

sin⁡B=bsin⁡Aa,B2=180∘−B1 \sin B = \frac{b\sin A}{a},\quad B_2 = 180^\circ - B_1

Trigonometry / right triangles

Right triangle from a leg and the hypotenuse

b=c2−a2,sin⁡A=ac b = \sqrt{c^2 - a^2},\quad \sin A = \frac{a}{c}

Right triangle from an acute angle and a side

sin⁡A=opphyp, cos⁡A=adjhyp, tan⁡A=oppadj \sin A = \frac{\mathrm{opp}}{\mathrm{hyp}},\ \cos A = \frac{\mathrm{adj}}{\mathrm{hyp}},\ \tan A = \frac{\mathrm{opp}}{\mathrm{adj}}

Right triangle from its two legs

c=a2+b2,tan⁡A=ab c = \sqrt{a^2 + b^2},\quad \tan A = \frac{a}{b}

Trigonometry / triangle area

Area of a triangle from its three sides (Heron)

K=s(s−a)(s−b)(s−c),s=a+b+c2 K = \sqrt{s(s-a)(s-b)(s-c)},\quad s = \frac{a+b+c}{2}

Trigonometry / trigonometric equations

Solve a trigonometric equation over one full turn

sin⁡u=k⇒u=arcsin⁡k, 180∘−arcsin⁡k(mod360∘),u=nx \sin u = k \Rightarrow u = \arcsin k,\ 180^\circ - \arcsin k \pmod{360^\circ},\quad u = n x

Trigonometry / unit circle

Exact trigonometric values on the unit circle

sin⁡30∘=12, sin⁡45∘=22, sin⁡60∘=32 \sin 30^\circ = \tfrac12,\ \sin 45^\circ = \tfrac{\sqrt2}{2},\ \sin 60^\circ = \tfrac{\sqrt3}{2}

Out of scope

  • Open-ended explanation, essay writing or tutoring dialogue: it is a solver, not a chatbot.
  • Questions outside its certified math foundations 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 (arithmetic, algebra, functions, exponentials and logarithms, trigonometry, precalculus and complex numbers); 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{math_foundations_ai999x_1_0_0,
  title  = {math-foundations-ai999x: an offline, verified math foundations solver},
  author = {Farabi, Ibnul Jaif}, organization = {AI999X},
  year   = {2026}, version = {1.0.0},
  url    = {https://huggingface.co/AI999X/math-foundations-ai999x}
}

Contact

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

Support the project

math-foundations-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
-
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/math-foundations-ai999x

Evaluation results

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