Published
Edited
Nov 19, 2020
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// MathJS 8 from unpkg (Doesn't import properly)
// mathjs8_require = require('mathjs@8.0.1/lib/browser/math.js').catch(() => window["math"])
Insert cell
// MathJS 8 from bundle.run (Doesn't import properly)
// mathjs8_bundle = require('https://bundle.run/mathjs@8.0.1')
Insert cell
// math-expressions (Doesn't import properly)
// mathex = require('math-expressions@2.0.0-alpha26/build/math-expressions_umd.js').catch(() => window["numeric"])
Insert cell
Insert cell
Insert cell
Insert cell
expression = math.parse(expression_string)
Insert cell
expression_parsed_string = expression.toString()
Insert cell
parsed_tex = expression.toTex()
Insert cell
// print latex
printed_tex = tex`f(x)=${parsed_tex}`
Insert cell
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