Moved inexact function to math