I am writing a program here that is abstracted into 3 methods. All methods require an h and rho value given by the user (both are doubles)
2/3 methods require a (h^2)*rho
Is it more memory efficient to:
A) Pass this values into the methods every time

Make them globals, set them in the main when the user enters the values.
C) With special thought on the h squared * rho, Should I calculate that once and pass/set as global or calculate it thousands of times inside the methods?