← Files Video Moment FinderARCHIVED FILE
examples/vector-lab.html
12.7 KB · Dec 3, 2026 · 06:18 UTC
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="referrer" content="no-referrer">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; script-src 'unsafe-inline'; base-uri 'none'; form-action 'none'">
<title>Read a dot product in two ways · VMF</title>
<style>
:root{color-scheme:light;--paper:#f7f5ee;--ink:#183329;--muted:#56665d;--line:#d7ddd2;--accent:#b94b27;--card:#fffef9;--soft:#e7ece1;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.65}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.22em}a:hover{color:var(--accent)}a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:5px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:normal;letter-spacing:-.035em;line-height:1.12}h1{font-size:clamp(2.7rem,5.5vw,5rem);max-width:900px;margin:.45em 0}h2{font-size:clamp(1.8rem,3vw,2.7rem);margin-bottom:.6em}h3{font-size:1.08rem;line-height:1.5}p,li{max-width:75ch}p{margin-bottom:1.1em}li{margin:.45em 0}ul{padding-left:1.3em}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-100px;left:16px;background:white;padding:12px;z-index:5}.skip:focus{top:10px}.topbar{border-bottom:1px solid var(--line);padding:19px clamp(20px,5vw,80px);display:flex;justify-content:space-between;gap:16px;font-size:.72rem;letter-spacing:.15em;text-transform:uppercase}.wordmark{font-weight:800}.wordmark:before{content:"";display:inline-block;background:var(--accent);width:10px;height:10px;border-radius:50%;margin-right:10px}.topbar span:last-child{color:var(--muted)}.hero{padding:54px clamp(20px,5vw,80px) 48px;border-bottom:1px solid var(--line)}.eyebrow{font-size:.68rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:16px}.scope{display:inline-block;font-size:.76rem;padding:5px 12px;border:1px solid var(--line);border-radius:100px;background:var(--soft)}.subtitle{font-size:1.15rem;color:var(--muted);max-width:680px;margin-bottom:24px}.lecture{font-size:.78rem;color:var(--muted);max-width:850px}.layout{display:grid;grid-template-columns:260px minmax(0,900px);gap:clamp(32px,5vw,90px);padding:44px clamp(20px,5vw,80px);max-width:1510px;margin:auto}aside{align-self:start;position:sticky;top:24px}nav a{display:flex;text-decoration:none;gap:15px;font-size:.78rem;padding:12px 0;border-bottom:1px solid var(--line)}nav a span{color:var(--accent);font-size:.68rem;padding-top:2px}nav p{font-size:.65rem;letter-spacing:.13em;font-weight:800;text-transform:uppercase}.sidebar-note{font-size:.7rem;color:var(--muted);margin-top:28px;line-height:1.65}.lesson-section{scroll-margin-top:24px;padding-bottom:42px;margin-bottom:40px;border-bottom:1px solid var(--line)}.citations{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:.69rem;color:var(--muted);margin-top:25px}.timestamp{display:inline-block;font-variant-numeric:tabular-nums;font-size:.7rem;font-weight:650;background:var(--soft);border-radius:6px;padding:4px 9px;text-decoration:none}.experiment{background:var(--soft);padding:30px;border-radius:14px;border:0}.experiment label{display:block;font-weight:700;font-size:.85rem}.experiment input{width:min(100%,360px);accent-color:var(--ink)}#matrix-description{font-size:.82rem;margin:18px 0}#pair-matrix{display:grid;gap:4px;max-width:420px;aspect-ratio:1;margin:24px 0}#pair-matrix span{background:#bb563e;border-radius:3px}#pair-matrix .positive{background:#487743}#pair-matrix .self{background:#f7f5ee;border:1px solid #abb8aa}.question{background:var(--card);padding:25px 28px;margin:18px 0;border:1px solid var(--line);border-radius:12px}details{border-top:1px solid var(--line);padding:11px 0}summary{cursor:pointer;font-size:.82rem;font-weight:650}details p{margin:14px 0 0;font-size:.9rem}.takeaways{background:var(--ink);color:var(--paper);padding:32px;border-radius:14px;margin-bottom:42px}.takeaways .eyebrow{color:#d8b482}.takeaways li{font-size:.95rem}.source{padding:24px 0;border-top:1px solid var(--line);font-size:.8rem;scroll-margin-top:24px}.source-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:14px}.source-heading strong{font-size:.73rem;font-weight:700}.source-frame{margin:0;background:var(--card);padding:16px;border:1px solid var(--line);border-radius:10px}.source-frame img{display:block;width:min(100%,640px);height:auto;margin:auto}.source-frame figcaption{font-size:.74rem;color:var(--muted);margin:15px 0 0;max-width:75ch}.image-fallback{padding:15px;background:var(--soft);font-style:italic}.source-note{font-size:.8rem;color:var(--muted)}footer{font-size:.7rem;padding:24px clamp(20px,5vw,80px);border-top:1px solid var(--line);color:var(--muted)}
@media(max-width:800px){.layout{grid-template-columns:1fr;gap:35px;padding-top:26px}aside{position:static}nav{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}nav p{grid-column:1/-1;margin-bottom:8px}.sidebar-note{margin-top:16px}.hero{padding-top:35px}.topbar{font-size:.62rem;letter-spacing:.1em}.question,.experiment,.takeaways{padding:23px}.source-heading{flex-wrap:wrap}}
@media print{aside,.topbar,.skip,input{display:none}.layout{display:block;padding:0}.hero{padding:0 0 20px}body{background:white;font-size:11pt}.question,figure,.source{break-inside:avoid}.lesson-section{margin-bottom:20px;padding-bottom:20px}a{color:inherit}.takeaways{background:white;color:var(--ink);border:1px solid var(--line)}footer{padding:15px 0}details{display:block}}
</style>
</head>
<body>
<a class="skip" href="#main">Skip to lesson</a>
<header class="topbar"><span class="wordmark">Video Moment Finder</span><span>Learning from evidence</span></header>
<div class="hero"><span class="scope">Synthetic · 00:00–00:45</span><h1>Read a dot product in two ways</h1><p class="subtitle">Connect a coordinate calculation to alignment, orthogonality, and a useful boundary case.</p><p class="lecture">VMF original vector lab · redistribution-safe demonstration</p></div>
<div class="layout"><aside><nav aria-label="Guide contents"><p>In this guide</p><a href="#calculate"><span>01</span>Multiply matching coordinates, then add</a><a href="#geometry"><span>02</span>Read the sign as alignment</a><a href="#boundary"><span>03</span>Check the assumption before using the rule</a><a href="#practice"><span>+</span>Try it yourself</a><a href="#source-notes"><span>+</span>Source notes</a></nav><p class="sidebar-note">AI-assisted study guide. Lecture claims have timestamped evidence. Examples and practice are marked as generated. Source playback may require your connected account.</p></aside>
<main id="main"><section id="calculate" class="lesson-section"><p class="eyebrow">01 / Generated explanation · check the assumptions</p><h2>Multiply matching coordinates, then add</h2><p>For two real two-dimensional vectors a=(a₁,a₂) and b=(b₁,b₂), the dot product is a₁b₁+a₂b₂.</p><p>With a=(3,4) and b=(2,0), only the horizontal contribution remains: 3×2+4×0=6. The result is a scalar, not a new vector.</p><div class="citations"><a href="#source-s-coordinate" title="View evidence note">s-coordinate</a> <span class="timestamp">00:00–00:15</span></div></section><section id="geometry" class="lesson-section"><p class="eyebrow">02 / Generated explanation · check the assumptions</p><h2>Read the sign as alignment</h2><p>For nonzero vectors, a·b=|a||b|cos(θ). A positive dot product means an acute angle; zero means a right angle; a negative result means an obtuse angle.</p><p>The unit coordinate vectors (1,0) and (0,1) make a right angle, and 1×0+0×1=0. The coordinate rule and geometric interpretation agree.</p><div class="citations"><a href="#source-s-perpendicular" title="View evidence note">s-perpendicular</a> <span class="timestamp">00:15–00:30</span></div></section><section id="boundary" class="lesson-section"><p class="eyebrow">03 / Generated explanation · check the assumptions</p><h2>Check the assumption before using the rule</h2><p>Reversing b from (2,0) to (−2,0) changes the example's dot product from 6 to −6. It points in the opposite direction.</p><p>A zero dot product alone does not establish a defined 90-degree angle: if either vector is zero, the dot product is zero but its direction and angle are undefined. The nonzero assumption matters.</p><div class="citations"><a href="#source-s-boundary" title="View evidence note">s-boundary</a> <span class="timestamp">00:30–00:45</span></div></section><section id="practice" class="lesson-section"><p class="eyebrow">Generated practice</p><h2>Make the idea yours</h2><p>Try each question before opening a hint or answer.</p><article class="question"><h3>01. What is (2,3)·(4,−1)?</h3><details><summary>Get a hint</summary><p>Compute the horizontal and vertical contributions separately.</p></details><details><summary>Check your answer</summary><p>2×4+3×(−1)=8−3=5. This is a generated practice example.</p><div class="citations"><a href="#source-s-coordinate" title="View evidence note">s-coordinate</a> <span class="timestamp">00:00–00:15</span></div></details></article><article class="question"><h3>02. Does a zero dot product always define a right angle?</h3><details><summary>Get a hint</summary><p>Try a=(0,0).</p></details><details><summary>Check your answer</summary><p>No. For nonzero vectors, zero dot product means perpendicular. If a vector is zero, the angle is undefined.</p><div class="citations"><a href="#source-s-boundary" title="View evidence note">s-boundary</a> <span class="timestamp">00:30–00:45</span></div></details></article></section><section id="takeaways" class="takeaways"><p class="eyebrow">Keep these ideas</p><h2>What to take with you</h2><ul><li>A dot product is a scalar obtained by multiplying matching coordinates and adding.</li><li>For nonzero vectors, the sign describes whether their angle is acute, right, or obtuse.</li><li>Check the nonzero assumption before turning zero dot product into an angle claim.</li></ul></section><section id="source-notes"><p class="eyebrow">Evidence, scope & limitations</p><h2>Go back to the source</h2><p class="source-note">Synthetic · 00:00–00:45. Original teaching fixture, not a transcript or a live VMF retrieval. Times identify planned scenes in the accompanying reproducible fixture; generated audio timing is recorded separately by make_fixture_video.py. No claim is made that this example has been indexed in any connected account.</p><p class="source-note">Timestamp links open VMF. If playback is unavailable or a source URL has expired, the timestamps and evidence notes still identify the moment in your original recording.</p><article id="source-s-coordinate" class="source"><div class="source-heading"><strong>s-coordinate · synthetic</strong><span class="timestamp">00:00–00:15</span></div><p>Original example: a=(3,4), b=(2,0). The dot product is 3×2 + 4×0 = 6.</p></article><article id="source-s-perpendicular" class="source"><div class="source-heading"><strong>s-perpendicular · synthetic</strong><span class="timestamp">00:15–00:30</span></div><p>Original example: (1,0) and (0,1) are nonzero perpendicular vectors, and their dot product is zero.</p></article><article id="source-s-boundary" class="source"><div class="source-heading"><strong>s-boundary · synthetic</strong><span class="timestamp">00:30–00:45</span></div><p>Original example: replacing (2,0) with (−2,0) flips the dot product with (3,4) from 6 to −6. A zero vector has zero dot product with every vector, but no defined angle.</p></article></section></main></div>
<footer>Made with VMF · Index once. Reuse evidence. Keep learning.</footer>
<script>
(() => {
'use strict';
const slider = document.getElementById('batch-size');
if (!slider) return;
const render = () => {
const n = Number(slider.value), views = 2 * n;
document.getElementById('batch-count').textContent = String(n);
document.getElementById('matrix-description').textContent = `${n} originals → ${views} views → ${views} × ${views} = ${views * views} cells. ${views} directed positive-pair cells; ${views} self-comparisons; ${views * views - 2 * views} different-image pair cells.`;
const matrix = document.getElementById('pair-matrix');
matrix.style.gridTemplateColumns = `repeat(${views}, 1fr)`;
matrix.replaceChildren();
for (let row = 0; row < views; row++) for (let col = 0; col < views; col++) {
const cell = document.createElement('span');
if (row === col) cell.className = 'self';
else if (Math.floor(row / 2) === Math.floor(col / 2)) cell.className = 'positive';
matrix.appendChild(cell);
}
};
slider.addEventListener('input', render); render();
})();
</script>
</body>
</html>
SHA-256: 2262eceee0f6c59f6f827392a2f287010b15f4d6f21d9fddcbab5225fe30c664