How PWM Frequency Affects Electromagnet Current and Power Consumption
Derives peak, valley, average current, and average power for an LR electromagnet under steady PWM, with interactive frequency and duty-cycle charts.
Plotly Interactive Chart Test
Demonstrates an interactive Plotly sine-wave chart with sliders for amplitude and frequency, including Hexo embedding and localized chart labels.
Understanding the Least-Squares Method From the Perspectives of Calculus and Linear Algebra
Derives least squares from calculus and linear algebra, explaining squared-error minimization, normal equations, and the geometric interpretation.
GAMES101 Study Notes 1
GAMES101 notes on 3D rotations, coordinate transformations, projection, rasterization, interpolation, and related graphics mathematics.
USACO23JAN Find and Replace S (Luogu P9013) Solution
Explains the graph-based solution to USACO Find and Replace, including cycle handling, special cases, minimum operations, and implementation details.
[Stanford CS144] Lab 4 Record
Notes on Stanford CS144 Lab 4, combining the TCP sender and receiver into a complete connection and handling state transitions and segments.
[Stanford CS144] Lab 0–Lab 3 Lab Notes
Notes on Stanford CS144 Labs 0–3, covering the byte stream, stream reassembler, TCP receiver, and TCP sender without publishing full solutions.
CF1774C Solution
Explains the dynamic counting idea for Codeforces 1774C by tracking the last change in a binary string and computing the answer for every prefix.
Derivation and Implementation of a Dense Neural Network on MNIST
Derives backpropagation for a dense neural network and implements MNIST digit recognition, including forward propagation, gradients, and training.
Ray Tracing: The Next Week Study Notes (1)
Study notes and extensions for Ray Tracing The Next Week, covering BVH, textures, Perlin noise, transforms, fog, and multithreading.
Ray Tracing in One Weekend Study Notes (2): Implementing the Camera Class
Explains the camera implementation in Ray Tracing in One Weekend, including orientation, field of view, aperture, focus, and depth of field.
Ray Tracing in One Weekend Study Notes (1): Lambertian Materials and Radiometry
Explains Lambertian materials in Ray Tracing in One Weekend through radiometry, the cosine law, diffuse reflection, and the corresponding code.




![[Stanford CS144] Lab 4 Record](/img/CS144/tcp%E7%8A%B6%E6%80%81%E6%B5%81%E8%BD%AC%E5%9B%BE.jpg)



