Published unlisted
Edited
Aug 2, 2018
Insert cell
Insert cell
viewof x = slider({min: -10, max: 20, step: 1, value: 5})
Insert cell
viewof y = slider({min: -100, max: 100, step: 1, value: 3})
Insert cell
tex `${x}^{${y}} = ${float_to_tex(Math.pow(x, y))}`
Insert cell
float_to_tex = x =>
('' + x).replace(/e(\+|(\-))([0-9]+)/, '\\times 10^{$2$3}')
Insert cell
import {slider} from '@jashkenas/inputs'
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