Simplify function composition slide
This commit is contained in:
parent
a5034b1812
commit
5fefc209f6
@ -2,7 +2,7 @@
|
|||||||
\vspace{\baselineskip}
|
\vspace{\baselineskip}
|
||||||
\\
|
\\
|
||||||
\ifger{Aus der Mathematik wissen wir bereits, dass:}{From maths we already know that:}\\
|
\ifger{Aus der Mathematik wissen wir bereits, dass:}{From maths we already know that:}\\
|
||||||
$(g \circ f)(x) = g(f(x))$
|
$(f \circ g)(x) = f(g(x))$
|
||||||
\vspace{\baselineskip}
|
\vspace{\baselineskip}
|
||||||
\\
|
\\
|
||||||
\pause
|
\pause
|
||||||
@ -14,7 +14,7 @@ composedFunction x = (f . g) x
|
|||||||
-- is evaluated first
|
-- is evaluated first
|
||||||
composedFunction x = f . g $ x
|
composedFunction x = f . g $ x
|
||||||
|
|
||||||
-- and same again, remember that 'f x ='
|
-- and same again, remember that 'g x ='
|
||||||
-- is just syntax sugar
|
-- is just syntax sugar
|
||||||
-- omitting the x here is also called eta reduction
|
-- omitting the x here is also called eta reduction
|
||||||
composedFunction = f . g
|
composedFunction = f . g
|
||||||
|
Loading…
Reference in New Issue
Block a user