Apr-14-2023, 05:43 PM
Hi,
I just registered in this site because I would like to know if it is possible to solve this problem with a simple Python code.
I'm not into programming and my knowledge is very low; I don't even know if it is possible to have a simple code for this problem.
I'm a mathematician and I have to compute a certain function (that has a certain number of variables) with the variables running in a set of values. Is it possible to have a code that print on the screen the values of the function corresponding to the set of variables?
I try to be more clear making an easy example.
Let suppose that I declare the function z=2 * x**4 - 5 * y**3 and I would like that the code prints on the screen all the values of z when, for instance, x and y goes from 1 to 5 (entire values). I expect that the screen shows me the corresponding 25 values of z.
As you can see I don't have any knowledge; I could suppose that this is a really simple problem even if I don't know how to begin.
Can somebody help me?
Thank you
Jason
I just registered in this site because I would like to know if it is possible to solve this problem with a simple Python code.
I'm not into programming and my knowledge is very low; I don't even know if it is possible to have a simple code for this problem.
I'm a mathematician and I have to compute a certain function (that has a certain number of variables) with the variables running in a set of values. Is it possible to have a code that print on the screen the values of the function corresponding to the set of variables?
I try to be more clear making an easy example.
Let suppose that I declare the function z=2 * x**4 - 5 * y**3 and I would like that the code prints on the screen all the values of z when, for instance, x and y goes from 1 to 5 (entire values). I expect that the screen shows me the corresponding 25 values of z.
As you can see I don't have any knowledge; I could suppose that this is a really simple problem even if I don't know how to begin.
Can somebody help me?
Thank you
Jason