Public
Edited
Feb 12, 2024
Insert cell
Insert cell
viewof mathInput = Inputs.textarea({label: "Mathjs Input", spellcheck:false, value:"2+2\n2 m + 10 mm"})
Insert cell
showResults(evalResults)
Insert cell
showResults = math.typed({
"ResultSet": x => htl.html`${math.typed.referToSelf(f => (x => x.entries.join()))}`,
"Unit": x => tex`${math.parse(x.toString()).toTex()}`,
"any": x => x
})
Insert cell
function resultToText(expr){return tex`${math.parse(expr).toTex()}`}
Insert cell
evalResults = math.evaluate(mathInput)
Insert cell
math = require("mathjs@12")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more