Version 4.2 (added discrete derivative)