You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: quadmin.m
    path of file: ./repos/informME/src/matlab_src
    
    the code of the file until where you have to start completion: %
% Permission was provided by the author, Arnold Neumaier, to 
% modify and distribute this MATLAB code with the informME 
% package. Contact th
    
function x = quadmin(a,b,d,x0)
% computes the minimum x of the quadratic polynomial
% p(x) = d(1) + d(2)(x - x0(1)) + d(3)(x - x0(1))(x - x0(2))
% in the interval [a,b]
% Uses the following function/m-file:
% quadpol.m

function x = quadmin(a,b,d,x0)
if d(3) == 0
 if d(2) > 0
  x = a;
 else
  x = b;
 end