Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.independent

Topic: Help with formula (revised question)
Replies: 7   Last Post: Nov 20, 2013 8:15 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jussi Piitulainen

Posts: 318
Registered: 12/12/04
Re: Help with formula (revised question)
Posted: Nov 20, 2013 4:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

William Elliot writes:

> On Wed, 20 Nov 2013, Robert Crandal wrote:
>

> > Here is the new data set:
> >
> > X Y
> > -- --
> > 0.0 1
> > 0.1 1
> > 0.5 1
> > 0.9 1
> > 1.0 1
> > 1.03 2
> > 1.5 2
> > 1.8 2
> > 2.0 2
> > 2.3 3
> > 3.0 3
> > 3.2 4
> >
> > Can this data be represented with a formula
> > that only uses either addition, subtraction,
> > multiplication, division, modulus, or the power (^)
> > function, or any combination of these?

>
> No, the function is ceiling x = -floor -x. It's a well accepted
> function even availible in some computer languages. Before
> computers, mathematicians used [x] for the greatest interger <= x,
> which computer languages call floor or int(), as in basic.


Define "x mod y" for arbitrary reals, y not 0, by

x mod y = x - y * floor(x/y)

and pretend this is what the question referred to as "modulus"[1]. It
probably isn't, but for a moment, pretend.

Then x mod 1 is the fractional part, floor(x) = x - (x mod 1) and:

ceiling(x) = -floor(-x)
= -((-x) - ((-x) mod 1)) = x + ((-x) mod 1)

[1] The book I'm following calls floor(x/y) the quotient and (x mod y)
the remainder; the modulus is y, aka "the number after mod".



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.