Get StartedComponentsStylingThemingMath & Science
MCP

Science

Science Calculators

@indoku/science is a pure TypeScript engine with no dependencies and no framework: physics, chemistry, math and Cartesian helpers you can call from a calculator, a server route or a React component.

These demos are plain inputs wired to engine functions. Wrap the results in FormulaBlock, Graph2D or Plot3D for a richer UI.

Markdown

Import

tsx
import { waveSpeed, molarMass, balanceEquation, projectile } from "@indoku/science"​// Subpaths keep bundles small:import { molarMass } from "@indoku/science/chemistry"

Examples

Waves

Wave speed and the Doppler effect.

v = fλ = 343.20 m/s
Doppler: 467.2 Hz

Fluids

Reynolds number and flow regime.

Water, Re = 75000 → turbulent

Projectile

Range 40.79 m · max height 10.20 m · time 2.88 s

Molar mass

Parses brackets and hydrates such as CuSO4·5H2O.

74.092 g/mol · Ca 54.1% · O 43.2% · H 2.7%

Equation balancer

C3H8 + 5 O2 → 3 CO2 + 4 H2O

pH

Strong acid and weak acid (exact quadratic).

Strong acid: pH 2.00 · weak acid: pH 3.38

Quadratic equation

Complex roots included.

x = 2.000, 1.000

Notes

  • All functions use SI units unless the name says otherwise.
  • Invalid input throws a plain Error; catch it and show the message.

Created by @indokudev