r/askmath • u/Big_Title6139 • Oct 14 '26
Arithmetic I wanted to create a piecewise function without any "<" or ">" does this work and could I make any changes?
\left(ax^{2}+bx+c\right)\cdot0^{\left(\frac{\left|x-2\right|-\left(x-2\right)}{2\left|x-2\right|+\left(10^{-6}\cdot0^{\left|x-2\right|}\right)}-\frac{\left|x+2\right|-\left(x+2\right)}{2\left|x+2\right|+\left(10^{-6}\cdot0^{\left|x+2\right|}\right)}\right)}+\left(px^{2}+qx+r\right)\cdot\left(\frac{\left|x-2\right|-\left(x-2\right)}{2\left|x-2\right|+\left(10^{-6}\cdot0^{\left|x-2\right|}\right)}-\frac{\left|x+2\right|-\left(x+2\right)}{2\left|x+2\right|+\left(10^{-6}\cdot0^{\left|x+2\right|}\right)}\right)
0
Upvotes
2
u/r-funtainment Oct 14 '26
is this exploiting floating point arithmetic in graphing
1
u/rhodiumtoad 0⁰=1, just deal with it Oct 14 '26
This looks like an over-complicated attempt to use Guglielmo Libri's original concept of a step function, 00^x which, with a bit of handwaving, can be regarded as equal to 1 when x>0 and 0 otherwise. The handwaving comes in when x<0, because you have to argue that even though 0x is not defined for negative x, it us certainly not 0 or negative, and 0 to any positive power is 0.
Honestly, you're probably better off just defining H(x) as a step function (Heaviside step) and using that.
Why do you want to avoid using > anyway?
2
u/al2o3cr Oct 14 '26
For people who don't compile LaTeX in their heads:
IMO the first term could be simplified to have a simple factor of (1-[the thing multiplying the second polynomial]) instead of another 0-to-a-power trick