Jul-22-2019, 11:40 AM

(Jul-22-2019, 11:19 AM)DeaD_EyE Wrote: You have to do this after the calculation.

I think I did:

import numpy as np np.savetxt("result.txt", np.divide(np.loadtxt("1.txt"), np.loadtxt("2.txt"))) m1, m2 = np.loadtxt("1.txt"), np.loadtxt("2.txt") result = np.divide(m1, m2) result[np.isinf(result)] = 0.0maybe sth else is wrong? I'm not a coder just need this to work so that you for your patience