How to share one math function with many subsets?

Robin2:
First thought ... why not use global variables that can be accessed everywhere in your program?

Second thought ... I don't know what you mean by "is just accessible to one variable". In my example there are two variables and you could have more if you need them.

Third thought ... I don't know what you have in mind when you say "many functions that using the same Method". In my mind that simple function I suggested can be called by as many other functions as you want

Fourth thought ... post a piece of "pseudo code" that illustrates what you are trying to achieve.

...R

It is possible to use global variables but I am searching a Method that many variables share the same function without need to program each function to each variable. Maybe I need to modify the CPU register to run many global variables to same Math function... It is called hacking; but I do not want to be an potentially illegal hacker.