Fixed wrong arithmetic operation for d-term.
Merge pull request #2 from mlosch/master

Fixed wrong arithmetic operation for d-term.