I have a problem and two ways came to my mind by I could not manage to find how to solve it.
I have two functions, A = a(x, y) and B = b(z, h). and we have y, z, h in these two functions. But we should find x provided that A = B.
Now either we can find the x via solving equation that I do not know how in python. In this way we should find x .
or we can use
a = (x, y)
b = (h, p)
If a == b:
print(a, b)
else:
pass
but it is not acceptable to use ==. This way can be used when we define a for loop for x and for instance from other that give out variables the answer of functions after calculation are for loops we have a= 1.5e-25, 5.6e-29, 1.3e-24 and etcandb= 3.5e-24, 1.2e-28, 1.7e-24which the answer will be1.7e-24`
I hope I explained it clearly.
any help please?
Aucun commentaire:
Enregistrer un commentaire