fix more typos

This commit is contained in:
Scott Richmond 2024-12-02 12:17:51 -05:00
parent 71446981b6
commit ccc8f122c3

View File

@ -842,8 +842,8 @@ Putting (7) and (6) togetherand solving for e gives
(8) e = 2*R*sin(1/2n) <-- Second problem solved. (8) e = 2*R*sin(1/2n) <-- Second problem solved.
``` ```
Review the following trig functions: sine, cosine, and tangent. Review the following trig functions: `sin`e, `cos`ine, and `tan`gent.
What is ani arctangent? What is an arctangent (`atan`)?
Draw some diagrams to explain each of these functions. Draw some diagrams to explain each of these functions.
Glue them on the inside cover of your notebook. Glue them on the inside cover of your notebook.
@ -851,20 +851,21 @@ Glue them on the inside cover of your notebook.
Here's how far we have gotten with `cngon!`: Here's how far we have gotten with `cngon!`:
``` ```
fn cngon! (n, rad) -> { fn cngon! (n, radius) -> {
penup! () penup! ()
forward! (rad) forward! (radius)
right! (angle) right! (angle)
pendown! () pendown! ()
ngon! (n, edge) ngon! (n, edge)
left! (angle) left! (angle)
penup! () penup! ()
back! (rad) back! (radius)
pendown! () pendown! ()
} }
``` ```
Now we can use `let` bindings to give `angle` and `edge` with the needed values, by translating our equations into Ludus code. Now we can use `let` bindings to bind the names `angle` and `edge` to the necessary values, by translating our equations into Ludus code.
Here is the finished `cngon!`: Here is the finished `cngon!`:
``` ```