Greatest integer function with linear function inside

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
Amer
Messages
259
Reaction score
0
What is the best way to redefine Greatest integer function as a piecewise function for example

f(x) = [ 2x - 3 ] , -2<= x <= 1
 
Physics news on Phys.org
Amer said:
What is the best way to redefine Greatest integer function as a piecewise function for example

f(x) = [ 2x - 3 ] , -2<= x <= 1

If my memory service me correctly, you should be able to write it as
$$
f(x) = [2x] - 3
$$
At -2, you have -7.
(-2,-3/2), you have -6.
(-3/2,-1) -5
At -1, you have -5
(-1,-1/2) -4
etc
After writing all that out, you should be able to develop a piecewise function.
 
Thanks, since I am a teacher i was looking for the easiest way to redefine it as a piecewise function.