None.
Open in the MATLAB editor: f16ec_example
function f16ec_example fprintf('f16ec example results\n\n'); % real vectors x and y; n = int64(5); x = [-4 2.1 3.7 4.5 -6.0]; y = [-3 -2.4 6.4 -5.0 -5.1]; % z = 3x - y; alpha = 3; beta = -1; incx = int64(1); incy = incx; [z] = f16ec(n, alpha, x, incx, beta, y, incy); fprintf('x = '); fprintf('%5.1f',x); fprintf('\ny = '); fprintf('%5.1f',y); fprintf('\n%4.1f x %+4.1f y = ',alpha,beta); fprintf('%7.1f',z); fprintf('\n');
f16ec example results x = -4.0 2.1 3.7 4.5 -6.0 y = -3.0 -2.4 6.4 -5.0 -5.1 3.0 x -1.0 y = -9.0 8.7 4.7 18.5 -12.9