> ## Documentation Index
> Fetch the complete documentation index at: https://docs.numberelectric.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NumElectScript

> Write scripts for waveforms, calculus views, and custom geometry in Number Electric's Phase Lab.

NumElectScript is a line-based scripting language for [Phase Lab](https://numberelectric.com/phase-lab). Write a script to choose a phase model, plot formulas on an angle axis, or draw a shape from coordinates. Save the setup to revisit it or share a link so someone else can review the same script.

Start new scripts with `numelectscript 2`. Use the same workflow for a waveform, a calculus view, or a geometry plot: write the script, validate it, apply it, and view the result.

> [!NOTE]
>
> Reading this guide does not require a Phase Lab plan. Running scripts in Phase Lab requires an active paid plan.

> [card] [Run your first script](https://docs.numberelectric.com/quickstart.md)
>
> Plot a shifted sine wave and learn how to validate, save, and share a setup.

> [card] [Plot and compare formulas](https://docs.numberelectric.com/waveforms.md)
>
> Mix angle units, compare both sides of an identity, and configure a calculus view.

> [card] [Draw custom geometry](https://docs.numberelectric.com/geometry.md)
>
> Build a closed 2D path or a 3D wireframe from coordinates.

> [card] [Command reference](https://docs.numberelectric.com/commands.md)
>
> Look up syntax, supported functions, and limits for versions 1 and 2.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.