+ 1

Numpy.allclose

i have some troubles in understanding this numpy function, i wish some explanation to relative and absolute tolerance parameters specifically

31st Jan 2019, 11:03 PM
Othienno Rafael Soto Esperança
Othienno Rafael Soto Esperança - avatar
3 Answers
+ 4
Start your journey here, brave warrior, and learn the way of the numpy. If you still have doubts, use this Q&A forum to clarify them. https://www.sololearn.com/learn/6671/?ref=app
1st Feb 2019, 1:28 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
numpy is a module. Plus, sololearn has a dedicated numpy course
1st Feb 2019, 1:27 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
Numpy.allclose is use to compare two values if two values are same then it return true otherwise false. e.g import numpy x=numpy.allclose(3,2.9) print(x) #output=false x=numpy.allclose(1,0.999999999999999999) print(x) #output=true because 2nd value is very accurate and very large or very close to 1.
1st Feb 2019, 2:56 AM
Maninder $ingh
Maninder $ingh - avatar