+Parentheses work again.
[lineal.git] / doc / infix_specifics.txt
blobe145210d738fd8a82ea08136b738f65ea1182a40
1 PREV: crop.txt
4 The format of these examples is:
6  [valid Lineal syntax] = [familiar syntax] = ... = [answer]; [comment]
8 ie: The equivalent expressions after the first are not necessarily valid
9 syntax, though sometimes they are.
12 Infix notation is obviously more natural for mathematics; it provides
13 some shortcuts as well. First and foremost, a blank space generally
14 implies multiplication.
16  a b = ab = a*b
17  2 3 = 2*3 = 6; though it's ugly without the operator.
19 A space can also imply a function call.
21  rref A = rref(A) = rrefA
23 ------------------------------------------------------------------------
25 Some ambiguity can crop up; for example, let us work with the
26 determinant function and give its image for the 5x5 matrix /A/.
28  det A = |A| = 3
30  2 det A = 2 |A| = 6
32                    5
33  det 2*A = |2A| = 2  |A| = 32*3 = 96
35  det 2 A = |2| A = ERROR
37  det A 2 = |A| 2 = 3*2 = 6
39  det (A 2) = |2A| = 96
41  det2A = detA2 = 6
43 More to come.
45 ------------------------------------------------------------------------
46  vim:ft=:expandtab:tw=72: