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 的数学函数,但一旦达到 0,它就会开始增加。我不在乎它是什么样的递增函数:e、抛物线等。我试图避免分段函数。
最简单的是x + abs(x),尽管从技术上讲abs(x)它本身就是分段的。
x + abs(x)
abs(x)
如果您想要更平滑的东西,请尝试x^3 + abs(x^3)或任何更高的奇数指数。
x^3 + abs(x^3)
另一个避免使用abs并且实际上是连续的选项:x + sqrt(x^2)
abs
x + sqrt(x^2)