attempt to support logarithmic/linear/toggle values

logarithmic needs some more thinking
link against `libm` for exp/log