Couldn’t find Math category :))

Need a mathematical function (X) when given 0 the output will be 1 , 50 the output will be 0.25 , …

0 (X) = 1.0

50 (X) = 0.25

100 (X) = 0.15

and so on …

Try this:

f(x) = (1+x/-W)^a;

https://www.desmos.com/calculator/lilgbvokom

It comes from the equation of a line parameterized to have the points at 0,1 and W,0 and power to ‘a’ to find the exponential decay you need.

Perfectly clear . Thanks Dani