Does it exist any function for this diagram?

Does it exist any function for this diagram?

if x = 1,2,3 => f(x) = 10 -x
if x = 5,6,7 => f(x) = 11 -x
if x = 9,... => f(x) = 12 -x
.
.
.
and so on...

>plot points and find trend line is it really that hard?

y = -0.0015x^6 + 0.044x^5 - 0.503x^4 + 2.7798x^3 - 7.6205x^2 + 8.6762x + 5.625
R2 = 1

Mate, I'm looking for an unique function, could be a sum of functions then?, I don't know how to restrict for 4 multipliers in an unique expression

Function is required, not graphical solution is required

isn't correct

My guess is picking a polynomial that's equal to 0 when x = 1,2,3, , 1 when x=5,6,7 and 2 when x=9. I' ll note it g(x)

f(x)= 10-x + g(x)

Why you faggots doing this faggots homework

That is a valid unique function. Be more specific on what you need.