A calculus based on a q-deformed Heisenberg algebra