Delta Weight (Dt) calculation function

Changed code to using a ln constant instead of a function