Skip to content

Commit 5918b9e

Browse files
committed
Fix some wording in Calc and remove TODOs
TODO's shouldn't be visible in the finished book. Put as issues or something instead.
1 parent e0897d8 commit 5918b9e

File tree

4 files changed

+12
-37
lines changed

4 files changed

+12
-37
lines changed

Physics/src/Calculus/FunExpr.lhs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ which is really equivalent to
3333

3434
$$D(x \mapsto x^2) = x \mapsto 2x$$
3535

36-
or
36+
or with more descriptive function names
3737

3838
$$D(square) = double$$.
3939

@@ -136,12 +136,12 @@ left-associative, and set the precedence.
136136
> -- Medium precedence
137137
> infixl 6 :+
138138
> infixl 6 :-
139-
> -- Higher
139+
> -- High precedence
140140
> infixl 7 :*
141141
> infixl 7 :/
142-
> -- Higherer
142+
> -- Higher precedence
143143
> infixl 8 :^
144-
> -- High as a kite
144+
> -- Higherer precedence
145145
> infixl 9 :.
146146

147147

@@ -198,7 +198,7 @@ expressions in a much more human friendly way!
198198
< ghci> carPosition
199199
< (10 + ((50 + (20 * id)) * id))
200200

201-
Still a bit noisy with all the parens, but much better!
201+
Still a bit noisy with all the parentheses, but much better!
202202

203203
Another class we need to instance for our `FunExpr` is
204204
`Arbitrary`. This class is associated with the testing library

Physics/src/Calculus/Intro.lhs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
What is calculus?
44
======================================================================
55

6-
TODO: Proofs/tests/verification
7-
8-
TODO: Have someone critique this
9-
106
Plain equations where all values are of the same dimension are all
117
fine and well. The importance of being able to solve basic problems
128
like "If Jenny has 22 meters, and Richard has 18 meters: how many
@@ -20,8 +16,8 @@ more interesting problems like this, we need calculus.
2016
Calculus is the study of stuff that continuously change over time (or
2117
some other continuous variable). For example, a distance that changes
2218
over time is equivalent to a speed or a velocity, depending on how
23-
many dimensions you have, and a volume that changes as a length
24-
changes does not have a name, as far as I know.
19+
many dimensions you have. You can have rates of changes with respect
20+
to other units, like length, as well, but those are not as common.
2521

2622
There are two major branches of calculus, differential calculus and
2723
integral calculus. Differential calculus is all about those rates of

Physics/src/Calculus/VisVerApp.lhs

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
>
55
> import Hatlab.Plot
66

7-
Visualization with Hatlab
7+
Plotting with Hatlab
88
--------------------------------------------------------------------
99

1010
The brain likes seeing things. Let's give it a good looking reward!
@@ -44,26 +44,3 @@ Then plot with
4444
Waddaya know! They look identical! I guess it just goes to
4545
show that a good approximation is often good enough.
4646

47-
48-
49-
TODO: Verification
50-
---------------------------------------------------------------------
51-
52-
QuickCheck everything. Verify that simplified expressions evaluate to
53-
equivalent function as original
54-
55-
56-
57-
58-
TODO: Applying our DSL to solve physics problems!
59-
----------------------------------------------------------------------
60-
61-
Mostly problems regarding position, velocity, acceleration, time.
62-
63-
Average FOO vs. Instantaneous FOO -- Differences vs Derivatives.
64-
65-
Integrating to get rid of /t:s.
66-
67-
cool stuff here in general.
68-
69-
Also, many pretty pictores

Physics/src/Introduction/Introduction.lhs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ expressions for validity.
6666
Look, we'll demonstrate. Let's say we want to model a language that is
6767
a subset to the common algebra we're all familiar with. Our language
6868
will consist expressions of a single variable and addition. For
69-
example, these are valid expressions in such a language:
69+
example, the following three expressions are all valid in such a language:
70+
71+
$$x + x$$
7072

7173
$$x$$
7274

@@ -90,7 +92,7 @@ or two expressions added together.
9092

9193
And that's it, kind of! A DSL without any associated functions for
9294
validation, symbolic manipulation, evaluation, or somesuch, is really
93-
no DSL at all! We mush DO something with it, or there is no point!
95+
no DSL at all! We must DO something with it, or there is no point!
9496

9597
One thing we can do with expressions such as these, is compare whether
9698
two of them are equal. Even without using any numbers, we can test

0 commit comments

Comments
 (0)