Functions Flashcards
What is a function?
mapping from x to one element y
what is domain and codomain?
What is an image and pre-image?
Domain think “input type”. The Pre-image.
Codomain thnk “return type”. the image.
when are two functions equal?
equal functions does not depend on equal implementations
what is “onto”
Surjection - for all Y, there is an X
All images have a pre-image
what is one-to-one or injective?
different elements of the domain map to different elements of codomain
horizontal line test: only one point
what is bijective? or one-to-one correspondence?
both one-to-one and onto
every y E Y is th eimage of exactly one x E X
-1 is part of codomain that has no preimage
f(-1) = f(1) = 1
what is inverse: F-1(x)
maps image to pre-image
Cardinality of sets (number of elements)