Public
Edited
Mar 13, 2024
Importers
2 stars
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
CIE_rg_BKG = FileAttachment("CIE_rg_BKG.png").url()
Insert cell
CIE_xy_BKG = FileAttachment("CIE_xy_sRGB_BKG.png").url()
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
// Adapted from https://observablehq.com/@tonyhschu/linear-algebra-homework-matrix-matrix-multiplication
texMatrix = (m) => {
const mt = math.transpose(m)
const values = mt.valueOf()
const string = values.map((row) => {
return row.map((d) => (Math.round(d * 1000000) / 1000000).toFixed(6)).join(' & ')
}).join(" \\\\ ")
const s = `\\left[\\begin{matrix}
${string}
\\end{matrix}\\right]`
const ss = s.replace('/\/\g', '\\')
return ss
}
Insert cell
Insert cell
Insert cell
math = require(URL.createObjectURL(mathMin))
Insert cell
mathMin = FileAttachment("math.min.js").blob()
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