eLucid8 computes only what you ask for.

Point at any spot: eLucid8 computes its value in your browser and shows you why. Drag to move; double-click to zoom in.

The Mandelbrot set: a black heart-shaped body and disc, fringed with gold and blue filaments, on a deep blue field.
Computed by eLucid8 when this page was published · 1440 × 960 points · 200 steps

Click a spot to ask about it · drag to move · double-click or + to zoom in · − to zoom out · 0 to start again

Computed by eLucid8: every value, the first view when this site was built and every zoom, spot and Why? live in your browser; the colours show each point's shade. The program →

The same engine as the elucid8 command, compiled to WebAssembly: the same answers, bit for bit, in your browser or on a server.

Try it on your phone: the same engine computes every zoom there.

At c = −0.7750 + 0.1350i

54steps, then the point escapes

n_steps[level = 1, k = 200, x = 1290, y = 1654]

Point anywhere on the picture to ask for another spot.

Why 54?

Starting from z = 0, eLucid8 repeats z ← z² + c. At step 54, z is first more than 1,024 from 0, so the count stops there.

stepzdistance from 0
5215.30 + 3.33i15.7
53222.17 + 102.14i245
5438,926.79 + 45,383.30i59,791 past 1,024

For this answer eLucid8 computed 1,904 values: this one point's path, nothing else. See every step in the playground

Places to explore

Next: build with a coding agent ↓

The program (9 equations for every view: moving asks for other points, zooming for another level)

-- The Mandelbrot set: for each point c of the plane,
-- repeat z ← z² + c from z = 0 and count the steps
-- until z is more than 1,024 from 0.
-- Each level is twice as close as the one before; x
-- and y have no end: the picture is the part of the
-- plane asked for, at the level asked for.
step = 0.005 / pow(2, #level)
steps = min(2000, round(200 * (1 + log10(pow(4, floor(#level / 2))))))
cx = -4 + #x * step
cy = -4 + #y * step
escaped = zr * zr + zi * zi > 1048576
zr = restrict 0 fby.k (if escaped then zr else zr * zr - zi * zi + cx) to (k : 2001) end
zi = restrict 0 fby.k (if escaped then zi else 2 * zr * zi + cy) to (k : 2001) end
n_steps = restrict 0 fby.k (if escaped then n_steps else n_steps + 1) to (k : 2001) end
-- The colour: the count made smooth between steps
-- (the steps in the set).
shade = if escaped then n_steps + 1 - log(log(zr * zr + zi * zi) / log(4)) / log(2) else steps

The question for the picture you see

shade[level = 1, k = 200, y = 1120..2079, x = 600..2039]

Build with a coding agent

Connect eLucid8 to Claude Code through MCP and it writes, checks and runs eLucid8 programs and deployments for you: it compiles each program before showing it, runs it on your data, explains an error from where it arose, and opens the results in the Player.

On the 38 tasks we test agents with, Claude Code completed 37.

pip install elucid8
claude mcp add elucid8 -- elucid8 mcp

Set it up step by step, and allow its tools once →

Curious how it works?

You never have to write eLucid8, but you can always read it: a three-line program, its answers, and what each answer was computed from.

1Read it

x = input("x", t : inf)
running = x fby.t (running + next.t x)
ratio = running / x
  • x: the readings, one at each step t
  • running: the first reading, then the total so far plus the next one
  • ratio: the total divided by the reading

2Ask any point

With readings 3, 1, 4, 0, 5, 9:

running[t = 4]13
ratio[t = 3]Error: division by zero
x[t = 6]eod

Every answer is data, eod (past the end of the data) or an error that says where it started, with the time of the newest data it read.

3Ask why

  • running[t = 4] = 13
  • running[t = 3] = 8
  • running[t = 2] = 8 …
  • x[t = 3] = 0 · data
  • x[t = 4] = 5 · data

Only what the answer needed: running at t = 0 to 4 and the readings at t = 0 to 4.

Build with it

Connect your AI

So your AI can use eLucid8 every time, with no steps to paste:

Claude Code, Cursor, Codexcoding agents
pip install elucid8, then connect elucid8 mcp (the line for each agent)
Any other AIGemini, Copilot, DeepSeek, Vibe
Give it the guide: https://elucid8-lang.org/llms.txt

Use it from Python

Tables in and out (pandas, Polars, pyarrow), from scripts and notebooks.

# pip install elucid8 pandas
import pandas as pd, elucid8

program = """
x = input("x", t : inf)
running = x fby.t (running + next.t x)
"""
readings = pd.DataFrame({"t": [0, 1, 2, 3, 4], "value": [3, 1, 4, 0, 5]})
table = elucid8.run(program, {"x": readings}, query="running[t = 0..4]", timestamps=False)
print(elucid8.tidy(table))

It prints:

   t  running_value running_error
0  0            3.0          None
1  1            4.0          None
2  2            8.0          None
3  3            8.0          None
4  4           13.0          None

eLucid8 from Python

Find your way

Write equations yourself: lessons in the language, in your browser.

Why eLucid8: where it fits, why not just Python, and measured against NumPy, DuckDB and pandas. See it run: Heat on a plate · Coral from a square · Catch a feature leak