Published
Edited
Jan 6, 2022
Fork of Hillshader
3 forks
Importers
26 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function getDerivativesZT(sm, z) {
const dzdx = (z * (sm.z6 - sm.z4)) / 2;
const dzdy = (z * (sm.z2 - sm.z8)) / 2;

return {
dzdx,
dzdy
};
}
Insert cell
Insert cell
Insert cell
function getDerivativesHorn(sm, z) {
const dzdx =
(z * (sm.z3 + 2 * sm.z6 + sm.z9 - sm.z1 - 2 * sm.z4 - sm.z7)) / 8;
const dzdy =
(z * (sm.z1 + 2 * sm.z2 + sm.z3 - sm.z7 - 2 * sm.z8 - sm.z9)) / 8;

return {
dzdx,
dzdy
};
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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