How can I find the Machine epsilon with float64 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I find the Machine epsilon with float64

I have a code for find the machine epsilon but i need use the same code with float64. Numpy? https://code.sololearn.com/clf91R5n2zLQ/?ref=app Tks!

12th Feb 2019, 2:28 AM
Daniel Gomez
Daniel Gomez - avatar
1 Answer
0
Yes, you can use numpy for this. Just initiate the variables as np.float64 already: import numpy as np d = np.float64(0.5) i = np.float64(0.0)
12th Feb 2019, 8:11 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar