a bug i don't understand why it is happening something about errors when p = -0.2, -0.8, -1.2, -1.8.

the numbers for q and other calculation become wrong, it should be infinity but it shows a large number.

did i code it wrongly?

thx!