Date: Nov 18, 2013 2:59 PM
Author: Stuart M Newberger
Subject: Re: Help with creating a function

On Monday, November 18, 2013 1:50:31 AM UTC-8, quasi wrote:
> Robert Crandal wrote:
>

> >
>
> >Suppose I have the following X-Y 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) = ((x-1)*(((2*x-1)/abs(2*x-1))+1)/2)+1
>
>
>
> is not pretty but it works.
>
>
>
> quasi


Hello ,I see you have not lost your quasi touch.
However f(x)=max(x,1)=(1/2)(x+1+|x-1|) Regards smn