Scientific Machine Learning: error control and analysis