I want to define a function that is called by another function. When we define the called function, which notations could it use? Hence, can it use the same notations as the function is called.
In programming we can use the same parameter names for each function since their namespaces are not affected by the function it is called from.
Here is a very simple example:
Let $A^{}_{N} = \{a^{}_{{1}},a^{}_{{2}},\dotsc,a^{}_{{\lvert N\rvert}}\} \\ B^{}_{N} = \{b^{}_{{1}},b^{}_{{2}},\dotsc,b^{}_{{\lvert N\rvert}}\} \\ Y{}_{N} = \{y^{}_{{1}},y^{}_{{2}},\dotsc,y^{}_{{\lvert N\rvert}}\} $ and
$C(A_N, B_N, Y_N) = \sum_{n \in N} R(a_{n},b_{n},y_{n})$
Here when I define a function $R$, can its parameter has the same notation as $a_n$, $b_n$, $y_n$:
$R(a_n,b_n,y_n) = a_n * 100 + b_n + y_n$
Or should I come up with different notations naming like:
- $R(\hat{a}_n,\hat{b}_n,\hat{y}_n) = a_n * 100 + \hat{b}_n + \hat{y}_n$
- $R(\hat{a},\hat{b},\hat{y}) = \hat{a} * 100 + \hat{b} + \hat{y}$
- $R(a',b',y') = a' * 100$ + b' + y'
Thank you for your valuable time and help.
Remember functions in math are comprised of a domain, a codomain, and a rule assigning a (single) value of the codomain to each element of the domainCan you clearify this? Is $R(x)$ and $C(A_n)$ considered to be in the same domain or different domain? – alper Oct 19 '22 at 11:42