This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Brute force method to guess p-adic solution to an equation | |
| // Copy and paste this to the Javascript console and run | |
| // Function to evaluate | |
| func = (x) => x ** 2; | |
| // Number base | |
| p = 7; | |
| console.table( | |
| Array.from({ length: p }).map((_, i) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # fill path to ctx | |
| Path.fill(ctx, "M250 150 L150 350 L350 350 Z") | |
| # stroke | |
| Path.stroke(ctx, "M250 150 L150 350 L350 350 Z") | |
| # clip | |
| Path.render(ctx, "M250 150 L150 350 L350 350 Z") | |
| ctx.clip() |