Difference between revisions of "Function"
From Maths
(Created page with "A function {{M|f}} is a special kind of relation ==Domain== A function '''ought''' be defined for everything in its domain, that's for every point in the domain...") |
m |
||
Line 4: | Line 4: | ||
A function '''ought''' be defined for everything in its domain, that's for every point in the domain the function maps the point to something. | A function '''ought''' be defined for everything in its domain, that's for every point in the domain the function maps the point to something. | ||
===Examples=== | ===Examples=== | ||
− | (See | + | (See notation below if you're not sure what the <math>f:X\rightarrow Y</math> notation means) |
* <math>f:\mathbb{R}\rightarrow\mathbb{R}</math> given by <math>f(x)=\frac{1}{x}</math> isn't defined at <math>0</math> | * <math>f:\mathbb{R}\rightarrow\mathbb{R}</math> given by <math>f(x)=\frac{1}{x}</math> isn't defined at <math>0</math> | ||
* <math>f:\mathbb{R}\rightarrow\mathbb{R}</math> given by <math>f(x)=x^2</math> is correct, it is not [[Surjection|surjective]] though, because nothing maps onto the negative numbers, however <math>f:\mathbb{R}\rightarrow\mathbb{R}_{\ge 0}</math> with <math>f(x)=x^2</math> is a surjection. It is not an [[Injection|injective function]] as only <math>0</math> maps to one point. | * <math>f:\mathbb{R}\rightarrow\mathbb{R}</math> given by <math>f(x)=x^2</math> is correct, it is not [[Surjection|surjective]] though, because nothing maps onto the negative numbers, however <math>f:\mathbb{R}\rightarrow\mathbb{R}_{\ge 0}</math> with <math>f(x)=x^2</math> is a surjection. It is not an [[Injection|injective function]] as only <math>0</math> maps to one point. |
Revision as of 20:01, 28 February 2015
A function f is a special kind of relation
Domain
A function ought be defined for everything in its domain, that's for every point in the domain the function maps the point to something.
Examples
(See notation below if you're not sure what the f:X→Y notation means)
- f:R→Rgiven by f(x)=1xisn't defined at 0
- f:R→Rgiven by f(x)=x2is correct, it is not surjective though, because nothing maps onto the negative numbers, however f:R→R≥0with f(x)=x2is a surjection. It is not an injective function as only 0maps to one point.
Notation
A function f from a domain X to a set Y is denoted f:X→Y
TODO: Come back after the relation page and fill this out