My code is essentially:
arrA=arrB-arrC*varD
.
However, what happens after running that is that arrA ≠ arrB-arrC*varD
, and instead arrA = arrB
. I think arrC*varD
is getting dropped off since it's super small, like 1e-20 at some point. However, arrA
is also at like 1e-14 and I really need that precision. The arrays are float64, so I'm not sure why they're getting rounded and dropped off like that in computing.
Does anyone know how I can avoid this and keep precision out to at least the 25th decimal place? I've tried np.around to the 25th place but that's not helping either.