function y = myf1d(x,a,b,myf,c)
    % x is real value in [0,norm(a-b)]
    % a is starting point in R^n
    % b is ending point in R^n
    % tmp is point x in R^n
    [d1,d2] = size(x);
    % d1 is assumed to be 1
    for j=1:d2
       tmp(j,:) = a+(b-a)*(x(j)/norm(a-b));
    end
    y = myf(tmp,c);
