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

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