Published
Edited
Oct 12, 2020
5 stars
Also listed in…
Math
Teaching ODEs
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function make_system(tr, det) {
let d = tr - 1;
let c = d - det;
return {
xp: 'x+y',
yp: `${c}*x+${d}*y`,
xmin: -2,
xmax: 2,
ymin: -2,
ymax: 2
};
}
Insert cell
function make_tex(tr, det) {
let d = tr - 1;
let c = d - det;
if (d < 0) {
return tex.block`\begin{aligned}x' &= x+y \\ y' &= ${f(c)}x - ${f(
-d
)}y\end{aligned}`;
} else {
return tex.block`\begin{aligned}x' &= x+y \\ y' &= ${f(c)}x + ${f(
d
)}y\end{aligned}`;
}
}
Insert cell
f = d3.format('0.2f')
Insert cell
params = ({ tr: 0, det: 1 })
Insert cell
Insert cell
import { make_plot } from '@mcmcclur/first-order-autonomous-systems-of-odes'
Insert cell
d3 = require('d3-selection@2', 'd3-scale@3', 'd3-drag@2', 'd3-format@2', 'd3-shape@2', 'd3-axis@2', 'd3-array@2')
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