Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何计算线性浮点数(0 到 1)的曲线并得到另一个浮点数?我想要的是直到一半(0..0.5),根据给定的线性值反转对数并且比对数高,就像曲线一样。
因此,您正在寻找的是要执行的功能:
double x, y; y = 1.0 / log(x) {x = 0 .. 0.5} log(x) {x = 0.5 .. 1}
??
或者:
y = exp(x) {x = 0 .. 0.5}