
Re: Help with creating a function
Posted:
Nov 18, 2013 7:03 AM


In article <ugnj89poilcj8f2uot0qjhqnk8um0dhmjp@4ax.com>, quasi <quasi@null.set> wrote:
> f(x) = ((x1)*(((2*x1)/abs(2*x1))+1)/2)+1
Extracting the more generally useful function out of this,
(x0.5) / abs(x0.5)
is 1 for integer x > 0, 1 for integer x <= 0
Using Knuth's [] notation, the original function can be written as
x + [x=0]
See http://arxiv.org/abs/math/9205211 (which coincidentally has some comments on the definedness of 0^0).
 Richard

