PlainSpice

Engine check: ngspice in your browser, compared with ngspice on a PC

This page runs ngspice 47, compiled to WebAssembly, inside a background worker in your browser. It simulates the fixture circuits from the Solved Circuits channel and compares every number with what native ngspice 47 and ngspice 42 computed for the same files on a PC (recorded with ngspice -b). The rule: the numbers must agree to 6 significant figures.

Loading ngspice (about 0.6 MB)…

The fixture circuits

Key results: by hand, native ngspice, and this browser
Fixture Quantity By hand Native ngspice 47 printed Native ngspice 42 printed This browser Agrees to 6 significant figures?
Every vector, point by point
Largest relative difference between this browser and native ngspice, over all points
Fixture Vector Points vs native 47 vs native 42

Try your own netlist

Line 1 is the title (SPICE always skips it), one line per part, ground is node 0, and end with .end. Analyses on this page: .op, .tf, .dc and .tran.

Press Ctrl+Enter (or ⌘+Enter) to run.