Published
Edited
Aug 13, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
graph1 = function(xp1){
const xp=xp1
const p = plotter();
const f = x => (x ** 2);
const fp = x => (2*x);
const tp= (p,x) => fp(p)*(x-p)+f(p)
const txp= x => tp(xp,x)
p.func( f, { stroke: 'green', width: 3 });
p.func( txp, { stroke: 'red', width: 2 });
p.point(xp,f(xp));
p.tex(String.raw`x=${xp}`, 5, 6, { size: 16, stroke: 'blue', baseline: 'middle' })
return p.node;
}
Insert cell
graph1(xp1)
Insert cell
viewof xp1 = html`<input class="form-range" type=range min=-2 max=2 step=0.1 value=1 />`
Insert cell
Insert cell
Insert cell
import {texmd} from "@kkim/texmd"
Insert cell
import {plotter} from "@kkim/plotter"
Insert cell
import {css,bootstrap} from "@kkim/bootstrap"
Insert cell
css
Insert cell
bootstrap
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more