classical-physics-ai999x — offline, verified classical physics 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: Physical Sciences · Tasks: Question Answering, Token Classification, Text Classification, Sentence Similarity, Feature Extraction

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

classical-physics-ai999x is a compact, deterministic classical physics engine for Python. It reads a question in plain English (or a typed call), picks a certified classical physics 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 classical physics 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 1177 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: kinematics, dynamics, energy, momentum, rotation, gravitation, oscillations, waves and sound, optics, thermodynamics, electricity and magnetism.

Model overview

Property Value
Package classical-physics-ai999x 1.0.0 (import classical_physics_ai999x)
Type Deterministic neuro-symbolic classical physics engine (rule-based reading + certified symbolic capabilities)
Capabilities 46 certified derivations, 16 certified model_familys, 2 certified procedures, 132 certified relations
Knowledge pack version 1.0.2
Golden answers 1177 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 classical-physics-ai999x
# or straight from this repository:
pip install https://huggingface.co/AI999X/classical-physics-ai999x/resolve/main/dist/classical_physics_ai999x-1.0.0-py3-none-any.whl
import classical_physics_ai999x as classical_physics

classical_physics.ask("A 3 kg object moves at 4 m/s. What is its kinetic energy?").show()
# -> SOLVED — 24 J  (kinetic_energy)
classical_physics.ask("A 2 kg mass on a spring with a spring constant of 50 N/m has a damping coefficient of 4 kg/s. What is the damped angular frequency?").show()
# -> SOLVED — 4.89898 rad/s  (damped_angular_frequency)
classical_physics.ask("A ball is kicked at 20 m/s at 30 degrees above the horizontal from level ground. How far does it travel horizontally?").show()
# -> SOLVED — 35.324 m  (projectile)
classical_physics.ask("What is the escape speed from a planet of mass 5.972e24 kg and radius 6.371e6 m?").show()
# -> SOLVED — 11186 m/s  (escape_speed)
classical_physics.solve("rocket_delta_v", ve="3000 m/s", m0="1000 kg", mf="400 kg").show()
# -> SOLVED — 2748.87 m/s  (rocket_delta_v)
classical_physics.ask("Who created you?").message
# -> classical-physics-ai999x was created and engineered by Ibnul Jaif Farabi at AI999X.

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

46 certified derivations, 16 certified model_familys, 2 certified procedures, 132 certified relations. A few of them:

  • Derivations: acceleration with friction level; angular acceleration from tangential; angular frequency period; average speed equal instantaneous; centripetal acceleration from period; derive absolute pressure depth; derive acceleration frictionless incline; derive centripetal acceleration omega; derive centripetal force; derive charge current; derive cyclotron radius; derive electric power; derive impulse; derive inductive reactance; derive lc resonance; derive long wire field; derive normal on level; derive ohm power current; derive ohm power voltage; derive orbital period; derive photon energy; derive photon energy wavelength; derive photon momentum; derive rl time constant …
  • Model_familys: A gas between two states; Apparent weight in an elevator; Block on a surface pulled over a pulley; Collisions along a line; Doppler effect for sound; Ideal banking of a curve; Maximum speed on a flat curve; Mixing to thermal equilibrium; Motion in stages; Projectile motion; RC circuits; Radioactive decay; Recoil from rest; Rolling from a height; Series and parallel resistor and capacitor networks; Two masses over a pulley
  • Procedures: Two resistors in series and in parallel; Velocity and displacement after constant acceleration
  • Relations: Absolute pressure at a depth in a fluid; Acceleration down a frictionless incline; Acceleration of a body rolling without slipping down an incline; Acceleration of an Atwood machine with a massive pulley; Amplitude-resonance frequency of a driven damped oscillator; Angular frequency and frequency; Angular frequency of a damped oscillator; Angular momentum of a point mass on a circle; Angular momentum of a rotating body; Angular velocity and angle turned under constant angular acceleration; Angular velocity under constant angular acceleration; Average net force from a change of momentum; Average power; Body-frame precession rate of a torque-free symmetric body; Capacitance of parallel plates; Carnot (maximum) efficiency; Centripetal acceleration; Centripetal acceleration from angular velocity; Centripetal force; Charge carried by a steady current; Charge on a capacitor; Coefficient of performance of a heat pump; Coefficient of performance of a refrigerator; Component of the weight along an incline …

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

All 134 formulas

Show every formula, by topic

AC circuits

Reactance of a capacitor

X=12πfC X = \frac{1}{2 \pi f C}

Reactance of an inductor

X=2πfL X = 2 \pi f L

Resonant frequency of an LC circuit

f=12πLC f = \frac{1}{2 \pi \sqrt{L C}}

Rms current of a sinusoidal supply

Irms=I02 I_{\text{rms}} = \frac{I_{0}}{\sqrt{2}}

Rms voltage of a sinusoidal supply

Vrms=V02 V_{\text{rms}} = \frac{V_{0}}{\sqrt{2}}

Capacitors

Capacitance of parallel plates

C=ε0Ad C = \frac{\varepsilon_{0} A}{d}

Charge on a capacitor

Q=CV Q = C V

Energy stored in a capacitor

Ecap=CV22 \text{Ecap} = \frac{C V^{2}}{2}

Circuits

Power from current and resistance

P=I2R P = I^{2} R

Power from voltage and resistance

P=V2R P = \frac{V^{2}}{R}

Resistance of a uniform wire

R=ρeLA R = \frac{\rho_{e} L}{A}

Two resistors in series and in parallel

rs=r1+r2,rp(r1+r2)=r1r2 r_{s} = r_{1} + r_{2},\quad r_{p} \left(r_{1} + r_{2}\right) = r_{1} r_{2}

Circular

Angular frequency and frequency

ω=2πf \omega = 2 \pi f

Centripetal acceleration

a=v2r a = \frac{v^{2}}{r}

Centripetal force

F=mv2r F = \frac{m v^{2}}{r}

Period and frequency

T=1f T = \frac{1}{f}

Speed on a circle from angular speed

v=ωr v = \omega r

Collisions

Final velocity of the first body in a one-dimensional elastic collision

v1f=(m1−m2)v1+2m2v2m1+m2 v_{1f} = \frac{\left(m_{1} - m_{2}\right) v_{1} + 2 m_{2} v_{2}}{m_{1} + m_{2}}

Final velocity of the second body in a one-dimensional elastic collision

v2f=(m2−m1)v2+2m1v1m1+m2 v_{2f} = \frac{\left(m_{2} - m_{1}\right) v_{2} + 2 m_{1} v_{1}}{m_{1} + m_{2}}

Dynamics

Acceleration down a frictionless incline

a=gsin⁡(θ) a = g \sin\left(\theta\right)

Average net force from a change of momentum

F=p2−p1t F = \frac{p_2 - p_1}{t}

Component of the weight along an incline

F=mgsin⁡(θ) F = m g \sin\left(\theta\right)

Impulse of a constant force

J=Ft J = F t

Linear momentum

p=mv p = m v

Net force and acceleration

F=ma F = m a

Net force with an opposing friction force

F=P−f F = P - f

Normal force on a level surface

N=W N = W

Normal force on an incline

N=mgcos⁡(θ) N = m g \cos\left(\theta\right)

Sliding friction

f=μN f = \mu N

Tension in a rope holding a hanging body

T=mg T = m g

Weight in a uniform gravitational field

W=mg W = m g

Electricity

Charge carried by a steady current

Q=It Q = I t

Electric power

P=VI P = V I

Voltage across an ohmic resistance

V=IR V = I R

Electrostatics

Electric field of a point charge

Ef=keQr2 E_{f} = \frac{k_{e} Q}{r^{2}}

Electric potential of a point charge

V=keQr V = \frac{k_{e} Q}{r}

Force on a charge in an electric field

F=qEf F = q E_{f}

Potential difference in a uniform field

V=Efd V = E_{f} d

Energy

Average power

P=Et P = \frac{E}{t}

Energy stored in a linear spring

U=kx22 U = \frac{k x^{2}}{2}

Force of a linear spring

F=kx F = k x

Gravitational potential energy near the surface

U=mgh U = m g h

Power of a force on a moving body

P=Fv P = F v

Speed of a body launched by a spring

kx22=mv22 \frac{k x^{2}}{2} = \frac{m v^{2}}{2}

Translational kinetic energy

K=mv22 K = \frac{m v^{2}}{2}

Work by a constant force

W=Fdcos⁡(θ) W = F d \cos\left(\theta\right)

Work-energy theorem

W=m(v2−v02)2 W = \frac{m \left(v^{2} - v_0^{2}\right)}{2}

Fluids

Absolute pressure at a depth in a fluid

P=P0+ρgh P = P_{0} + \rho g h

Flow rate as volume per time

Q=Vt Q = \frac{V}{t}

Flow rate through a cross section

Q=Av Q = A v

Mass density

ρ=mV \rho = \frac{m}{V}

Pressure of a column of fluid

P=ρgh P = \rho g h

Pressure of a force on an area

P=FA P = \frac{F}{A}

Gravitation

Gravitational acceleration at a distance from a mass

g=GMr2 g = \frac{G M}{r^{2}}

Period of a circular orbit

T=2πr3GM T = 2 \pi \sqrt{\frac{r^{3}}{G M}}

Speed in a circular orbit

v=GMr v = \sqrt{\frac{G M}{r}}

Induction

Current dying away in an RL circuit

I=I0e−tτ I = I_{0} e^{\frac{-t}{\tau}}

Emf of a rod moving through a magnetic field

emf=Blv \text{emf} = B l v

Time constant of an RL circuit

τ=LR \tau = \frac{L}{R}

Kinematics

Displacement from the mean of initial and final velocity

x=(v0+v)t2 x = \frac{\left(v_0 + v\right) t}{2}

Displacement under constant acceleration

x=v0t+at22 x = v_0 t + \frac{a t^{2}}{2}

Maximum height of a vertical throw

h=v022g h = \frac{v_0^{2}}{2 g}

Motion at constant velocity

d=vt d = v t

Speed after a displacement under constant acceleration

v2=v02+2ax v^{2} = v_0^{2} + 2 a x

Speed after falling from rest

v=2gh v = \sqrt{2 g h}

Time to the top of a vertical throw

t=v0g t = \frac{v_0}{g}

Velocity and displacement after constant acceleration

v=u+at,2s=(u+v)t v = u + a t,\quad 2 s = \left(u + v\right) t

Velocity under constant acceleration

v=v0+at v = v_0 + a t

Magnetism

Magnetic field at the centre of a circular loop

B=μ0I2r B = \frac{\mu_{0} I}{2 r}

Magnetic field inside a long solenoid

B=μ0ntI B = \mu_{0} n_{t} I

Magnetic field of a long straight wire

B=μ0I2πr B = \frac{\mu_{0} I}{2 \pi r}

Magnetic force on a current-carrying wire

F=ILBsin⁡(θ) F = I L B \sin\left(\theta\right)

Magnetic force on a moving charge

F=qvBsin⁡(θ) F = q v B \sin\left(\theta\right)

Radius of a charged particle's circle in a magnetic field

r=mvqBsin⁡(θ) r = \frac{m v}{q B \sin\left(\theta\right)}

Optics

Focal length of a spherical mirror

f=R2 f = \frac{R}{2}

Index of refraction

n=cv n = \frac{c}{v}

Thin lens equation

1do+1di=1f \frac{1}{d_{o}} + \frac{1}{d_{i}} = \frac{1}{f}

Wavelength of light in a medium

λn=λn \lambda_{n} = \frac{\lambda}{n}

Orbits

Escape speed

v=2GMr v = \sqrt{\frac{2 G M}{r}}

Orbital period from the semi-major axis (Kepler's third law)

T=2πa3GM T = 2 \pi \sqrt{\frac{a^{3}}{G M}}

Orbital speed on an elliptical orbit (vis-viva)

v=GM(2r−1a) v = \sqrt{G M \left(\frac{2}{r} - \frac{1}{a}\right)}

Oscillations

Amplitude-resonance frequency of a driven damped oscillator

ωr=km−b22m2 \omega_{r} = \sqrt{\frac{k}{m} - \frac{b^{2}}{2 m^{2}}}

Angular frequency of a damped oscillator

ωd=km−b24m2 \omega_{d} = \sqrt{\frac{k}{m} - \frac{b^{2}}{4 m^{2}}}

Damping ratio

ζ=b2km \zeta = \frac{b}{2 \sqrt{k m}}

Higher normal mode of a double pendulum

ω=(2+2)gL \omega = \sqrt{\frac{\left(2 + \sqrt{2}\right) g}{L}}

Higher normal-mode frequency of two coupled oscillators

ω2=k+2kcm \omega_{2} = \sqrt{\frac{k + 2 k_{c}}{m}}

Lower normal mode of a double pendulum

ω=(2−2)gL \omega = \sqrt{\frac{\left(2 - \sqrt{2}\right) g}{L}}

Maximum speed of a mass on a spring

v=Xkm v = X \sqrt{\frac{k}{m}}

Period of a mass on a spring

T=2πmk T = 2 \pi \sqrt{\frac{m}{k}}

Period of a physical pendulum

T=2πIrmgd T = 2 \pi \sqrt{\frac{I_{r}}{m g d}}

Period of a simple pendulum

T=2πLpg T = 2 \pi \sqrt{\frac{L_{p}}{g}}

Quality factor of a damped oscillator

Qf=kmb Q_{f} = \frac{\sqrt{k m}}{b}

Steady-state amplitude of a driven damped oscillator

A=F0(k−mω2)2+(bω)2 A = \frac{F_{0}}{\sqrt{\left(k - m \omega^{2}\right)^{2} + \left(b \omega\right)^{2}}}

Quantum

De Broglie wavelength

λ=hp \lambda = \frac{h}{p}

Energy of a photon

E=hf E = h f

Momentum of a photon

p=hλ p = \frac{h}{\lambda}

Photon energy from wavelength

E=hcλ E = \frac{h c}{\lambda}

RC circuits

Time constant of an RC circuit

τ=RC \tau = R C

Voltage of a charging capacitor

V=emf(1−e−tRC) V = \text{emf} \left(1 - e^{\frac{-t}{R C}}\right)

Voltage of a discharging capacitor

V=V0e−tRC V = V_{0} e^{\frac{-t}{R C}}

Relativity

Rest energy

E0=mc2 E_{0} = m c^{2}

Rigid body

Acceleration of a body rolling without slipping down an incline

a=gsin⁡(θ)1+IrmR2 a = \frac{g \sin\left(\theta\right)}{1 + \frac{I_{r}}{m R^{2}}}

Acceleration of an Atwood machine with a massive pulley

a=(m1−m2)gm1+m2+IrR2 a = \frac{\left(m_{1} - m_{2}\right) g}{m_{1} + m_{2} + \frac{I_{r}}{R^{2}}}

Body-frame precession rate of a torque-free symmetric body

Ωp=ω3(I3−I1)I1 \Omega_{p} = \frac{\omega_{3} \left(I_{3} - I_{1}\right)}{I_{1}}

Moment of inertia of a solid disk about its axis

Ir=mR22 I_{r} = \frac{m R^{2}}{2}

Moment of inertia of a solid sphere

Ir=2mR25 I_{r} = \frac{2 m R^{2}}{5}

Moment of inertia of a thin rod about its center

Ir=mLr212 I_{r} = \frac{m L_{r}^{2}}{12}

Moment of inertia of a thin rod about one end

Ir=mLr23 I_{r} = \frac{m L_{r}^{2}}{3}

Moment of inertia of a thin spherical shell

Ir=2mR23 I_{r} = \frac{2 m R^{2}}{3}

Rotating frames

Off-axis equilibrium of a bead on a rotating hoop

θ=arccos⁡(gω2R) \theta = \arccos\left(\frac{g}{\omega^{2} R}\right)

Precession period of a Foucault pendulum

T=2πΩsin⁡(ϕ) T = \frac{2 \pi}{\Omega \sin\left(\phi\right)}

Rotation

Angular momentum of a point mass on a circle

L=mvr L = m v r

Angular momentum of a rotating body

L=Irω L = I_{r} \omega

Angular velocity and angle turned under constant angular acceleration

ω2=ω02+2αθ \omega^{2} = \omega_{0}^{2} + 2 \alpha \theta

Angular velocity under constant angular acceleration

ω=ω0+αt \omega = \omega_{0} + \alpha t

Centripetal acceleration from angular velocity

a=rω2 a = r \omega^{2}

Rotational kinetic energy

KR=Irω22 K_{R} = \frac{I_{r} \omega^{2}}{2}

Tangential acceleration of a point on a rotating body

a=rα a = r \alpha

Torque of a force

τ=rFsin⁡(θ) \tau = r F \sin\left(\theta\right)

Thermal

Carnot (maximum) efficiency

eff=1−TcTh \text{eff} = 1 - \frac{T_{c}}{T_{h}}

Coefficient of performance of a heat pump

cop=QhW \text{cop} = \frac{Q_{h}}{W}

Coefficient of performance of a refrigerator

cop=QcW \text{cop} = \frac{Q_{c}}{W}

Efficiency of a heat engine

eff=WQh \text{eff} = \frac{W}{Q_{h}}

Energy balance of a cyclic heat engine

W=Qh−Qc W = Q_{h} - Q_{c}

Heat for a temperature change

Q=mcΔT Q = m c \Delta T

Heat to boil or condense

Q=mLv Q = m L_{v}

Heat to melt or freeze

Q=mLf Q = m L_{f}

Ideal gas law

PV=nRT P V = n R T

Linear thermal expansion

dL=αtLdT d_{L} = \alpha_{t} L d_{T}

Thermal expansion of an area

dA=2αtAdT d_{A} = 2 \alpha_{t} A d_{T}

Thermal expansion of volume

dV=βV0dT d_{V} = \beta V_{0} d_{T}

Variable mass

Velocity change of a rocket (Tsiolkovsky)

Δv=veln⁡(m0mf) \Delta v = v_{e} \ln\left(\frac{m_{0}}{m_{f}}\right)

Waves

Intensity as power per area

I=PA I = \frac{P}{A}

Speed of a periodic wave

v=fλ v = f \lambda

Out of scope

  • Open-ended explanation, essay writing or tutoring dialogue: it is a solver, not a chatbot.
  • Questions outside its certified classical physics 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 (kinematics, dynamics, energy, momentum, rotation, gravitation, oscillations, waves and sound, optics, thermodynamics, electricity and magnetism); 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{classical_physics_ai999x_1_0_0,
  title  = {classical-physics-ai999x: an offline, verified classical physics solver},
  author = {Farabi, Ibnul Jaif}, organization = {AI999X},
  year   = {2026}, version = {1.0.0},
  url    = {https://huggingface.co/AI999X/classical-physics-ai999x}
}

Contact

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

Support the project

classical-physics-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
17
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/classical-physics-ai999x

Evaluation results

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