diff --git a/math-replay/algebra/new-definitions-1.haml b/math-replay/algebra/new-definitions-1.haml new file mode 100644 index 0000000..48d7e8a --- /dev/null +++ b/math-replay/algebra/new-definitions-1.haml @@ -0,0 +1,68 @@ +%html + %head + %title New Definitions 1 + %script{:type => "text/x-mathjax-config"} + MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); + %script{:type => "text/javascript", :src => "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"} + %link{:rel => 'stylesheet', :type => 'text/css', :href => './style.css'} + %body + %h2 $x `not` $y = 8x - 3y$: + .solution + :escaped + $$ + \begin{eqnarray} + x `not` y & = & 8x - 3y \\ + 6 `not` -2 & = & 8(6) - 3(-2) \\ + 6 `not` -2 & = & 48 + 6 \\ + 6 `not` -2 & = & 54 \\ + \end{eqnarray} + $$ + + %h2 $x `star` y = 8y + 2$: + .solution + :escaped + $$ + \begin{eqnarray} + x `star` y = 8y + 2 \\ + -2 `star` 5 = 8(5) + 2 \\ + -2 `star` 5 = 40 + 2 \\ + -2 `star` 5 = 42 \\ + \end{eqnarray} + $$ + + %h2 $x `diamond` y = xy + 3x - y$: + .solution + :escaped + $$ + \begin{eqnarray} + x `diamond` y = xy + 3x - y \\ + 3 `diamond` -2 = (3)(-2) + 3(3) - (-2) \\ + 3 `diamond` -2 = -6 + 9 + 2 \\ + 3 `diamond` -2 = -6 + 11 \\ + 3 `diamond` -2 = 5 \\ + \end{eqnarray} + $$ + + %h2 $x `not` y = x + 3y$: + .solution + :escaped + $$ + \begin{eqnarray} + x `not` y = x + 3y \\ + -4 `not` 6 = -4 + 3(6) \\ + -4 `not` 6 = -4 + 18 \\ + -4 `not` 6 = 14 \\ + \end{eqnarray} + $$ + + %h2 $x `donut` y = 3x - 3y$: + .solution + :escaped + $$ + \begin{eqnarray} + x `donut` y = 3x - 3y \\ + 0 `donut` 0 = 3(0) - 3(0) \\ + 0 `donut` 0 = 0 - 0 \\ + 0 `donut` 0 = 0 \\ + \end{eqnarray} + $$