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: dpartial_acot.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/runtime
    
    the code of the file until where you have to start completion: % function [dpartial y] = dpartial_acot(x)
%
% Compute partial derivative diagonal of y = acot(x).
%
% see also dpartial_exp.
%
% This file is part of the ADiMat runtime environment

    
function [dpartial y] = dpartial_acot(x)
%
% Compute partial derivative diagonal of y = acot(x).
%
% see also dpartial_exp.
%
% This file is part of the ADiMat runtime environment
%
% Copyright 2012 Johannes Willkomm, Fachgebiet Scientific Computing
%                     TU Darmstadt
function [dpartial y] = dpartial_acot(x)
  dpartial = -1 ./ (1 + x.^2);
  if nargout > 1
    y = acot(x);
  end