quasi
Posts:
12,052
Registered:
7/15/05


Re: Help with creating a function
Posted:
Nov 18, 2013 6:50 AM


David Hartley wrote: >quasi wrote: >>Robert Crandal wrote: >>> >>>Suppose I have the following XY data set: >>> >>>X Y >>>  >>>0 1 >>>1 1 >>>2 2 >>>3 3 >>>. . >>>. . >>>N N >>> >>>Can this be represented with a math function? >>> >>>(Only consider positive integers >= 0) >> >>It's already a function since for each x in the domain, there >>is a unique y. >> >>Presumably you want a "formula". >> >>The function f defined on the set of nonnegative integers >>by the formula >> >> f(x) = ((x1)*(((2*x1)/abs(2*x1))+1)/2)+1 >> >>is not pretty but it works. > >Given the storm in a teacup going on in another thread at the >moment, this springs to mind. > > f(x) = x + 0^x > >Using of course the convention that 0^0 = 1 but 0^n = 0 for >positive integers n.
Hehe.
Very cool.
quasi

