1.5.4 • Published 3 years ago
desmos v1.5.4
Desmos
Desmos is the dead-simple way to embed rich, interactive math into your web page or web app.
Installation and usage
The easiest way to use desmos is to install it from npm and build it into your app with Webpack.
npm install desmos --save
Then use it in your app:
import Desmos from 'desmos'
const elt = document.createElement('div')
elt.style.width = '600px'
elt.style.height = '400px'
const calculator = Desmos.GraphingCalculator(elt)
calculator.setExpression({ id: 'graph1', latex: 'y=x^2' })
document.body.prepend(elt)
Demo
https://www.desmos.com/calculator