Skip to content

Instantly share code, notes, and snippets.

@kyscg
kyscg / dnexample.py
Created May 18, 2025 05:03
Implementing Automatic Differentiation in pure Python
"""
an example implementation of dual numbers
and usage for finding derivatives
see kyscg.github.io/2025/05/18/autodiffpython
for details
author: kyscg
"""
@kyscg
kyscg / pyroPE.ipynb
Last active November 17, 2024 11:42
strange happenings while burning plastic bags
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / a004207.ipynb
Last active March 14, 2024 14:19
Analysis of Entry A004207 in the OEIS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / einsumNotation.ipynb
Last active February 28, 2025 07:17
Einstein Summation Notation Exercises
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / fastFactorials.ipynb
Created July 13, 2023 14:47
Faster Factorial Approximations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / amseries.ipynb
Last active May 14, 2023 17:02
Convergence of an arithmetic mean sequence
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / selfAttention.ipynb
Last active May 27, 2025 04:30
Visualizing Self Attention
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / audioIntro.ipynb
Created December 27, 2022 16:46
Visualizing Audio Files
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kyscg
kyscg / newtonMethod.ipynb
Created December 18, 2022 16:10
Root Finding with Newton's Method
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.