From 2af82d55798625383f9c42063043504ba9677c43 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 2 Nov 2020 20:50:13 -0500 Subject: Improve explainer alignment --- docs/tutorial/expression.html | 176 +++++++++++++++++++++--------------------- docs/tutorial/list.html | 72 ++++++++--------- 2 files changed, 124 insertions(+), 124 deletions(-) (limited to 'docs/tutorial') diff --git a/docs/tutorial/expression.html b/docs/tutorial/expression.html index 69b2790c..6be69727 100644 --- a/docs/tutorial/expression.html +++ b/docs/tutorial/expression.html @@ -115,41 +115,41 @@ 33.510321638291124

The evaluation order is diagrammed below, with the function on the first line evaluated first, then × on the next, and so on. The effect of the parentheses is that ÷ is evaluated before the leftmost ×.

- + - + (4÷3) × π × 23 - - - - - - - - - + + + + + + + + + - 3 - - 2 - × - π - × - 3 - ÷ - 4 + 3 + + 2 + × + π + × + 3 + ÷ + 4 - 3 - - 2 - × - π - × - 3 - ÷ - 4 + 3 + + 2 + × + π + × + 3 + ÷ + 4 @@ -169,50 +169,50 @@ 0

That's a fairly large expression, so here's another evaluation diagram to check your understanding.

- + - + (3 + 2×2) - 1+2 - - - - - - - - - - - - + + + + + + + + + + + + - 2 - - + - 1 - - - 2 - - × - 2 - + - 3 - + 2 + + + + 1 + - + 2 + + × + 2 + + + 3 + - 2 - - + - 1 - - - 2 - - × - 2 - + - 3 - + 2 + + + + 1 + - + 2 + + × + 2 + + + 3 + @@ -348,33 +348,33 @@

It's past time we covered how the syntax for modifiers works. Remember how I told you you hated learning the order of operations? No? Good. Modifiers bind more tightly than functions, so they are called on their operands before those operands can be used as arguments. As the parentheses above suggest, modifiers associate from left to right, the opposite order as functions. For example, the first expression above is evaluated in the order shown below. First we construct the square function ט, then compose it with +, and finally apply the result to some arguments.

- + - + 3 ט+ 4 - - - - - - - + + + + + + + - 4 - + - - ˜ - × - 3 + 4 + + + + ˜ + × + 3 - 4 - + - - ˜ - × - 3 + 4 + + + + ˜ + × + 3 diff --git a/docs/tutorial/list.html b/docs/tutorial/list.html index 22df9358..fc26a6e4 100644 --- a/docs/tutorial/list.html +++ b/docs/tutorial/list.html @@ -278,48 +278,48 @@ 9

Lot of functions up there. Notice how I need to use parentheses for the left argument of a function if it's compound, but never for the right argument, and consequently never with a one-argument function.

- + - + +´ (24) × "1001"-'0' - - - - - - - - - - - - + + + + + + + + + + + + - '0' - - - "1001" - × - 4 - - - 2 - - ´ - + + '0' + - + "1001" + × + 4 + + + 2 + + ´ + + - '0' - - - "1001" - × - 4 - - - 2 - - ´ - + + '0' + - + "1001" + × + 4 + + + 2 + + ´ + + -- cgit v1.2.3