Saturday 31 August 2013

Inverting a value

Inverting a value
If x is in the range of 0 - 1:
y = 1 - x

If x is in the range of -1 - 1:
y = -1(x)

No comments:

Post a Comment