% hw005.m
% John Burkardt
% Evaluate a formula.
%
x = input ( '  Enter value for X: ' );
y = 1 / ( ( x - 0.3) ^2 + 0.01) + 1 / ( (x-0.9) ^2 + 0.04 ) - 6;

fprintf ( '  X = %g, Y = %g\n', x, y );