Ask your own question, for FREE!
Algebra 8 Online
OpenStudy (lifeisadangerousgame):

Could someone help me with this please? ><

OpenStudy (lifeisadangerousgame):

jimthompson5910 (jim_thompson5910):

"nint" sounds like "nearest integer"

jimthompson5910 (jim_thompson5910):

so plug in various values of x to get corresponding values of y this will give you a series of points to plot

jimthompson5910 (jim_thompson5910):

ex: when x = 1.2 y = nint(x) y = nint(1.2) y = 1 so the point (1.2, 1) is on the graph

OpenStudy (lifeisadangerousgame):

Okay that makes sense...how do I graph that? This is what I have -1.5 = -2 -1.3 = -2 -1 = 0 -0.8 = 0 -0.5 = 0 -0.3 = 0 0 = 0 where do I go from tehre? or is that all I need?

jimthompson5910 (jim_thompson5910):

the nearest integer for -1.3 is -1 not -2

jimthompson5910 (jim_thompson5910):

-1 is already an integer, so leave it as it is

jimthompson5910 (jim_thompson5910):

-0.8 is closer to -1 than it is to 0

jimthompson5910 (jim_thompson5910):

so is -0.5

OpenStudy (lifeisadangerousgame):

I thought for nearest integer you have to round it to an even number?

OpenStudy (lifeisadangerousgame):

ohh, that's just for decimals

jimthompson5910 (jim_thompson5910):

no to the nearest integer (ie whole number)

OpenStudy (lifeisadangerousgame):

My book says "To avoid confusion for numbers such as -1.5 and 3.5, the function assigns the nearest even integer to each input value. So nint(-1.5) = -2, while nint(3.5) = 4." This is what has me confused?

jimthompson5910 (jim_thompson5910):

yeah because -1.5 is close to -2 (it's right halfway between 0 and -1, but you usually round up)

jimthompson5910 (jim_thompson5910):

same for 3.5 it's right between 3 and 4, but you round up

OpenStudy (lifeisadangerousgame):

So it should be -1.5 = -2 -1.3 = -2 -1 = -1 -0.8 = 0 -0.5 = 0 -0.3 = 0 0 = 0 like that?

jimthompson5910 (jim_thompson5910):

-0.8 is closer to -1, not 0 same for -0.5

OpenStudy (lifeisadangerousgame):

So really its the nearest integer, not nearest even integer?

jimthompson5910 (jim_thompson5910):

yes, I'm not sure where you're seeing " nearest even integer" since that makes no sense at all just go for the closest whole number

OpenStudy (lifeisadangerousgame):

Well its what my book says and my teacher taught us that too, its really confusing

jimthompson5910 (jim_thompson5910):

hmm maybe you're thinking of a different function? nint is basically rounding whatever input you plug in to the nearest whole number

OpenStudy (lifeisadangerousgame):

It says nearest integer function, I'll type the paragraph "The nearest integer function, denoted by nint(x), assigns the nearest integer to each real number in an interval. To avoid confusion for numbers such as -1.5 and 3.5, the function assigns the nearest even integer to each input value. So nint(-1.5) = -2, while nint(3.5) = 4. The nearest integer for numbers in the interval [-0.5, 0.5] is zero."

jimthompson5910 (jim_thompson5910):

hmm that's so odd

jimthompson5910 (jim_thompson5910):

well I guess you better stick to those rules then

jimthompson5910 (jim_thompson5910):

basically what it's saying is if you're at some number that has ".5" in it, then pick the number that's even eg: nint(0.5) = 0 (we could pick either 0 or 1, but the rules tell us to pick an even number) nint(1.5) = 2 nint(2.5) = 2 nint(3.5) = 4 nint(4.5) = 4 etc etc

OpenStudy (lifeisadangerousgame):

So with the problem I have do I have to do that for every single number from -1.5 to 1.5?

jimthompson5910 (jim_thompson5910):

no just numbers that have 5 right after the decimal point numbers like: 0.5, 1.5, 2.5, 3.5, 4.5, etc

jimthompson5910 (jim_thompson5910):

why these numbers? because they are exactly at the midpoint of each consecutive integer pair

jimthompson5910 (jim_thompson5910):

you round like normal for every other input

OpenStudy (lifeisadangerousgame):

Okay so -1.5 = -2 -1 = -1 -0.5 = 0 0 = 0 and then 1.5 = 2 1 = 1 0.5 = 0 0 = 0

jimthompson5910 (jim_thompson5910):

good

jimthompson5910 (jim_thompson5910):

so that gives you a bunch of points to plot

jimthompson5910 (jim_thompson5910):

keep in mind that this isn't a continuous graph

jimthompson5910 (jim_thompson5910):

it will look like a staircase (that isn't connected)

OpenStudy (lifeisadangerousgame):

Okay, I'll try to graph it

OpenStudy (lifeisadangerousgame):

Is that right so far?

jimthompson5910 (jim_thompson5910):

yes, so far, so good

OpenStudy (lifeisadangerousgame):

I know that the highest dot I made is as highest I can go, but I'm not sure what to point between the 0,0 and the highest point

jimthompson5910 (jim_thompson5910):

hmm wait, I'm getting this graph with geogebra

OpenStudy (lifeisadangerousgame):

I have geogebra, but I don't know how to use it yet >< I see the graph, but I still don't understand how that is the answer? I know it is, just don't understand it yet

jimthompson5910 (jim_thompson5910):

well I graphed a shifted version of the "ceil" function the "ceil" function basically always rounds up to make sure the outputs are integers then I added endpoints (closed and open circles) on top of that graph

OpenStudy (lifeisadangerousgame):

Oohh, I need to take a tutorial on geogebra, it looks like it will really help with this

jimthompson5910 (jim_thompson5910):

yeah it's a very handy graphing program

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!