Basing on the definition linear algebra gives, a linear real valued function of real values $f$ is a function such that: $$f(x+y)=f(x)+f(y)$$ $$f(ax)=af(x)$$ Is there any function $g: A\subseteq\mathbb{R}\rightarrow\mathbb{R}$, complex as you want or nonelementary, that posses the same properties of a linear function (additivity and homogeneity), but isn't a line passing through the origin?
In other words, is this double implication valid?
$f: B\subseteq\mathbb{R}\rightarrow\mathbb{R}$ is a linear function $\Leftrightarrow$ $\exists C\in\mathbb{R}$ such that $f(x)=Cx$