I am now trying to pass a multi-variable function F(x, y, z)
as an argument of another function G(F, x)
in Python. As written, the two arguments in function G is the function F and one of F's variables x. In other words, what I am trying to do is instead of passing F as a three-variable function, I'd rather pass it as a single variable function which depends only on x. The values of y and z are already assigned before calling G.
In Matlab, this is done simply by:
G((@x) F(x, y, z));
I am wondering if there is something similar in Python? I have tried to search online but I am not very familiar with the English wording for this particular question so no luck.