- Comment: We've finished Chapter 8 Differentiation except we need a bit more class time on 8.01 and 8.02.
- Textbook work: 8.03–8.08
- Optional extra work: Two PDFs on Classroom under Differentiation. One is named "Fitzpatrick", the other "Differentiaton rules".
- Comment: I put a video on Classroom to help you with 8.04. Please read the text on p. 389 and study the worked examples carefully to ensure you are familiar with everything in that exercise.
- Comment: We will recap differentiation skills next term and have a quiz. Please note that derivatives of "sin" and "exp" are not assumed knowledge yet and are not included in Chapter 8.
- Comment: We did Parametrics and 3D Trig this week so we can tick off a couple of small items. We will do more 3D Trig on Friday. (There is more to it than towers.)
- Textbook work: 6.10, 5.08
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
| local wezterm = require('wezterm') | |
| local act = wezterm.action | |
| local c = wezterm.config_builder() | |
| -- | |
| -- General settings: reload config, close confirmation, key encoding | |
| -- | |
| c.automatically_reload_config = true |
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
| Name,Sex,Age,Height (in),Weight (lbs) | |
| Alex,M,41,74,170 | |
| Bert,M,42,68,166 | |
| Carl,M,32,70,155 | |
| Dave,M,39,72,167 | |
| Elly,F,30,66,124 | |
| Fran,F,33,66,115 | |
| Gwen,F,26,64,121 | |
| Hank,M,30,71,158 | |
| Ivan,M,53,72,175 |
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
| # We read the data as just an array of words. No need for line-by-line, although | |
| # that is fine as well. | |
| def test_data_09(): | |
| return open("data/09.1.txt").read().split() | |
| def real_data_09(): | |
| return open("data/09.txt").read().split() | |
| D = test_data_09() |
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
| ;; Problem 13 from Advent of Code 2021 -- origami | |
| (defn fold-left [fold-x [x y :as point]] | |
| (if (< x fold-x) | |
| point | |
| [(- (* 2 fold-x) x) y])) | |
| (defn fold-up [fold-y [x y :as point]] | |
| (if (< y fold-y) | |
| point |
Gavin Sinclair, January 2022
I use Karabiner (configured with Gosu) to make advanced key mappings on my Apple computer. Karabiner allows you to create “layers”, perhaps simulating those on a programmable mechanical keyboard. I make good use of these layers to give me easy access (home-row or nearby) to all symbols and navigational controls, and even a numpad.
The motivation is to keep hand movement to a minimum. Decades of coding on standard keyboards has unfortunately left me with hand and wrist pain. I will soon enough own a small split keyboard which will force me to use layers to access symbols etc., so this Karabiner solution, which has evolved over months, is a training run for that.
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
| { | |
| :devices { | |
| :sculpt-keyboard [{:product_id 1957 :vendor_id 1118}] | |
| } | |
| :layers {:capslock-mode {:key :caps_lock :alone {:key :escape}} | |
| ; CAPSLOCK gives arrow keys with hjkl and Enter with m or Escape if tapped | |
| } |
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
| MANSW 2021 | |
| Different By Design | |
| Differential Equations | |
| Gavin Sinclair | |
| Slides: bit.ly/diff-eq-mansw-2021 | |
| Scratchings: bit.ly/3tCgHF7 |
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
| import random | |
| UPPER_LIMIT = 1000000 | |
| target = random.randint(1, UPPER_LIMIT) | |
| print("I've chosen a number between 1 and", UPPER_LIMIT) | |
| num_guesses = 0 | |
| while True: |
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
| # --- Question 1 ------------------------------------------- # | |
| # Return the number of jumps required to get to zero. | |
| def light_years(n): | |
| return 0 | |
| def test_light_years(n): | |
| assert light_years(10) == 4 | |
| assert light_years(11) == 4 |
NewerOlder