kill(all);

van=facebook.com/LearningCalculus$

f(x):=1+sin( (3*%pi*(abs(x) - abs(x+2)))/4 );

float(f(-2));

float(f(-2/3));