# RelativisticPy > RelativisticPy reads mathematics as it is written, in LaTeX, plain text or Unicode, and computes it: each field in the notation of its books, data from NumPy and pandas in index notation, and the equations of LaTeX papers, which it checks. It is a Python package and a language. Key facts: - Install: `pip install "relativisticpy[numeric] @ git+https://github.com/cottrellashley/relativisticpy"` while PyPI still serves the earlier 1.x releases. The extras are `numeric` (NumPy and SciPy), `data` (with pandas and scikit-learn), `jax`, `mcp` (the MCP server) and `live` (the editor in notebooks). - Run a program or a Markdown notebook with `relativisticpy FILE`, code with `relativisticpy -c "..."`, and check the equations of a LaTeX paper with `relativisticpy check paper.tex`. From Python, `Workbook().expr(source)` gives the value of a program's last expression, and `Workbook().exe(source)` every value. - Learn the language offline: `relativisticpy help` lists the topics, `relativisticpy help reference` prints the whole language on one page, and `relativisticpy help NAME` one function in full. - Plain text (`g_{mu nu}`, `x**2`), LaTeX (`g_{\mu\nu}`, `\frac{1}{2}`) and Unicode (`θ`, `∂`) mix freely in one program. - `:=` always defines. `=` defines only what has no meaning yet; otherwise it is a claim, which is checked, or an equation. - In Python, write LaTeX in a raw string, `r"\frac{1}{2}"`: in an ordinary string, Python turns `\f`, `\t`, `\n`, `\r`, `\b`, `\a` and `\v` into control characters. - For programs: `--format json` on the command line, and `display.data(value)`, `report.to_dict()` and `error.to_dict()` in Python. The exit status is 0 when everything succeeded, 1 when a statement or a check failed, and 2 for a command line that is wrong. - For agents: `relativisticpy mcp` serves the tools `compute`, `verify` and `check` over MCP. Every answer is right, or says it is not one: a refusal is an `error` whose `hint` says what to write instead, and a value kept as written, as an integral with no closed form, has `"complete": false` and its `reasons`. ## Docs - [Home](https://relativisticpy.org/index.html.md): what RelativisticPy is, and where to start for what you want to do. - [Getting started](https://relativisticpy.org/getting-started/index.html.md): how to install RelativisticPy, run a workbook from Python, and run a program, a notebook and a check from the command line. - [Troubleshooting](https://relativisticpy.org/troubleshooting/index.html.md): the mistakes that are easiest to make, why each happens, and what to write instead. - [Jupyter and notebooks](https://relativisticpy.org/jupyter/index.html.md): how results display in Jupyter, a first cell to start from, and how a Markdown file becomes a notebook that RelativisticPy runs and typesets. - [Live mathematics in notebooks](https://relativisticpy.org/live/index.html.md): how results show themselves typeset, what `show` shows, and how the editor computes as you type. - [Examples](https://relativisticpy.org/examples/index.html.md): what RelativisticPy makes of whole derivations, in General Relativity, quantum mechanics and finance, with every result shown. ## Guides - [The language](https://relativisticpy.org/language/index.html.md): statements, names, what `:=` and `=` mean, functions, equations and calculus, where each field's notation is, and what the language makes of Python's habits. - [LaTeX](https://relativisticpy.org/latex/index.html.md): how LaTeX is read, letters, scripts, functions and brackets, the environments and commands, Unicode, and the looser notation of papers. - [Tensors and geometry](https://relativisticpy.org/tensors/index.html.md): how to define a metric, compute its curvature, write index notation by coordinate and by label, and what `=` means beside `:=`. - [Solving tensor equations](https://relativisticpy.org/notation/index.html.md): how equations in index notation are kept, solved, traced, simplified and substituted into. - [Checking papers](https://relativisticpy.org/checking/index.html.md): how to check a LaTeX document or a Markdown notebook, what each verdict means, and how to read a report from Python. - [Beyond spacetime](https://relativisticpy.org/spaces/index.html.md): how data is bound to tensors, what spaces and indices are, and how to write statistics and linear algebra in index notation. - [Numerics](https://relativisticpy.org/numerics/index.html.md): how to compile a result into a NumPy function, evaluate it at a point, and integrate geodesics of particles and light with SciPy. ## Fields - [Matrices](https://relativisticpy.org/matrices/index.html.md): how to write a matrix, and the notation of linear algebra as books write it. - [Vectors](https://relativisticpy.org/vectors/index.html.md): the products of vectors, `\nabla` in any coordinates, and integrals along curves and over regions. - [Random variables](https://relativisticpy.org/probability/index.html.md): how to declare a random variable, and to write probabilities, expectations and variances as books do. - [Optima](https://relativisticpy.org/optima/index.html.md): how to write an optimum and its constraints, how it is found, and when it is global. - [Number theory and sequences](https://relativisticpy.org/discrete/index.html.md): the arithmetic functions, sums over divisors and primes, congruences, and sequences, as signal processing writes them. - [Quantum notation](https://relativisticpy.org/quantum/index.html.md): Dirac's kets and bras, commutators, wavefunctions, and operators as values. ## Reference - [The language reference](https://relativisticpy.org/reference/index.html.md): every statement, command, environment, constant, verdict and error, and every function by name. - [Integrations](https://relativisticpy.org/integrations/index.html.md): what an integration is, how to write one step by step, and how the conformance suite checks it. - [Python API](https://relativisticpy.org/python/index.html.md): the workbook, every kind of result, whether a claim holds, how results are shown, and errors. - [Command line](https://relativisticpy.org/cli/index.html.md): The `relativisticpy` command runs programs and Markdown notebooks, checks the equations of papers, prints this documentation offline, and gives a prompt to compute at. - [MCP server, for agents](https://relativisticpy.org/mcp/index.html.md): how to serve RelativisticPy to any MCP client, what each tool takes and gives, how to tell an answer from a refusal or a value kept as written, and the bounds the server keeps. - [Glossary](https://relativisticpy.org/glossary/index.html.md): what each term means here; the pages use each in this one sense. ## Coming from - [Other tools](https://relativisticpy.org/coming-from/index.html.md): how what you write there is written here, and how RelativisticPy and SymPy work together. - [RelativisticPy 1.x](https://relativisticpy.org/upgrading/index.html.md): what still works, what changed, and the program of the 1.x README, rewritten. ## Optional - [How it works](https://relativisticpy.org/architecture/index.html.md): how text becomes results, stage by stage, and where to add a function, a command, a spacetime or an operation. - [Roadmap](https://relativisticpy.org/roadmap/index.html.md): what is done, what is being done now, and what comes next.