Mercurial > dylan
view sicm/notes.org @ 7:1d454bfbb881
fixed comments
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 28 Oct 2011 04:56:48 -0700 |
parents | b4de894a1e2e |
children |
line wrap: on
line source
1 #+TITLE: Notes for SICM3 * Complex numbers6 * Multidimensional Structures7 ** Tuples8 - Tuples are a new data type: sequences with /spin/. A tuple can be either spin-up or spin-down.9 - A pair of compatible tuples can be *contracted* into a single number.10 - Tuples are compatible if they have the same length and opposite11 spin, and if their corresponding pairs of items are either both12 numbers or both compatible tuples.13 - To contract tuples, take the sum of the products of corresponding14 pairs of items. (To take the product of compatible tuples,15 contract them.)17 *Generic Arithmetic:* To multiply two tuples, check to see if they are18 compatible. If they are, contract them. If they aren't, multiply each19 item of the second tuple by the first tuple.21 To multiply a tuple by a number, multiply each element of the tuple by22 the number.24 ** Matrices25 Uses incanter matrices.