I don't see a reason why your formula shouldn't work with negative numbers. It is a simple affine function. Example in python:
確定! 回上一頁