function val = soma(a,r,x)
%

val = a + (x - r)