When I want to solve mathematical problems, most of the time I meet the following functions
Algebraic like polynomials.
Trigonometric like sin(), cos(), tan(), cot().
Logarithmic like log().
Exponential like exp().
Hyperbolic like sinh(), cosh(), tanh(), coth() that can be written with the help of (4).
Combination of 1-5.
My questions are:
Where do these functions come from? Are the origins of them from nature or real-world or are abstract concepts?
Can I create my own function? I know I can create a new function by combining these functions. But can I invent a pure function from scratch that can not be written with the help of 1-5?
What is the definition of mathematical function? Can we say functions of Mathlab, Java, C and other programming languages are mathematical?
Is my question true!?
double f(double)for example, is almost something like a function $\mathbb R\to\mathbb R$. But not exactly: First, it works only with a smaller set that $\mathbb R$, namely the finite set $R$ of doubles; but that's okay, we should be content with a function $R\to R$. However, even then this need not be a function: The code may fail for certain inputs (e.g. divide by zero). Or the code may return different outputs for the same input on subsequent calls (e.g. by having side-effects or depending ontimeorrand).