Could someone help me with this please? ><
"nint" sounds like "nearest integer"
so plug in various values of x to get corresponding values of y this will give you a series of points to plot
ex: when x = 1.2 y = nint(x) y = nint(1.2) y = 1 so the point (1.2, 1) is on the graph
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?
the nearest integer for -1.3 is -1 not -2
-1 is already an integer, so leave it as it is
-0.8 is closer to -1 than it is to 0
so is -0.5
I thought for nearest integer you have to round it to an even number?
ohh, that's just for decimals
no to the nearest integer (ie whole number)
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?
yeah because -1.5 is close to -2 (it's right halfway between 0 and -1, but you usually round up)
same for 3.5 it's right between 3 and 4, but you round up
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?
-0.8 is closer to -1, not 0 same for -0.5
So really its the nearest integer, not nearest even integer?
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
Well its what my book says and my teacher taught us that too, its really confusing
hmm maybe you're thinking of a different function? nint is basically rounding whatever input you plug in to the nearest whole number
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."
hmm that's so odd
well I guess you better stick to those rules then
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
So with the problem I have do I have to do that for every single number from -1.5 to 1.5?
no just numbers that have 5 right after the decimal point numbers like: 0.5, 1.5, 2.5, 3.5, 4.5, etc
why these numbers? because they are exactly at the midpoint of each consecutive integer pair
you round like normal for every other input
Okay so -1.5 = -2 -1 = -1 -0.5 = 0 0 = 0 and then 1.5 = 2 1 = 1 0.5 = 0 0 = 0
good
so that gives you a bunch of points to plot
keep in mind that this isn't a continuous graph
it will look like a staircase (that isn't connected)
Okay, I'll try to graph it
Is that right so far?
yes, so far, so good
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
hmm wait, I'm getting this graph with geogebra
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
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
Oohh, I need to take a tutorial on geogebra, it looks like it will really help with this
yeah it's a very handy graphing program
Join our real-time social learning platform and learn together with your friends!