Title : Homework 0 Title Note : Due on Sept 7 Wednesday Author : Your Name Email : you@bar.com Doc class : [11pt]article ~ MathDefs \newcommand{\jacobi}[2]{\ensuremath{\left(\frac{#1}{#2}\right)}} ~ [TITLE] # Basic Text Typewriting. Here is a list: * item 1 * item 2 * item 3 * subscripting: XXX; superscripting: XXX This is a XXX. Newly introduced notion will be emphasized in italic font such as XXX. We could also add boldface to it, e.g., XXX. Mathematics can be inlined like XXX. Or, they can be elegantly presented in standalone blocks like below: ~ Equation { #euler-thm } XXX ~ The above theorem can be referenced as Equation XXX. We may prove it as a theorem: ~ Theorem {#th-euler; caption:"Euler's theorem" } XXX ~ # Basics of typesetting code Below is a Javascript program snippet ``` javascript function hello() { return "hello world!" } ``` Here is the Java code we mentioned in the first lecture: XXX And typing up Haskell is as easy: XXX ~ Note The syntax highlighting works in the PDF output too. ~ # Practice Save and Load. # More Reading Read Section 3 and 4 of Madoko reference manual. Describe two of your favorite features that we didn't mention in class. # Hands-On Install the Haskell platform and try out examples we talked in class. Note down two of your favorite trials (you are especially encouraged to try out things we haven't talked about in class). You can copy the command line text-scripts and paste them between two lines of (identical number of) consecutive backquotes. ` $ ghci GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help Prelude λ> ` If you want nicer formatting, you could use ``` {padding-left:1ex; padding-right:1ex; padding-top:.75ex; padding-bottom:.25ex; background-color:black; color:white; font-size:14pt } $ ghci GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help Prelude λ> ```