diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-12-22 08:53:56 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-12-22 08:53:56 -0500 |
commit | 43d25346d7cd339327c218376fa785a3a4b3781d (patch) | |
tree | 88f3398f14be89b3f37d74a30889551b4170c5a1 /day21/part2.md | |
parent | d58977fe0f11cabbd979167fd87f88c1748abc6a (diff) |
add day 21
Diffstat (limited to 'day21/part2.md')
-rw-r--r-- | day21/part2.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/day21/part2.md b/day21/part2.md new file mode 100644 index 0000000..957e3da --- /dev/null +++ b/day21/part2.md @@ -0,0 +1,9 @@ +## Solving part 2 with Maxima + +1. Add '$' to the end of each line of input. +2. Replace `root`'s operator with '='. +3. Replace `humn`'s definition with x: `humn: x$`. +4. Load into maxima: `maxima --init-mac=input` +5. Evaluate `root` until `x` is visible: `root: root, eval;`. +6. Solve: `solve(root, x)`. + |