/* 
  This file was generated automatically with /nfs/data-012/marques/software/source/libxc/svn/scripts/maple2c.pl.
  Do not edit this file directly as it can be overwritten!!

  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at http://mozilla.org/MPL/2.0/.

  Maple version     : Maple 2016 (X86 64 LINUX)
  Maple source      : ../maple/gga_x_herman.mpl
  Type of functional: work_gga_x
*/

void xc_gga_x_herman_enhance
  (const xc_func_type *p,  xc_gga_work_x_t *r)
{
  double t1, t2, t3, t4, t6, t7, t8;


  t1 = M_CBRT3;
  t2 = t1 * t1;
  t3 = M_CBRT4;
  t4 = t2 * t3;
  t6 = cbrt(0.1e1 / 0.31415926535897932385e1);
  t7 = 0.1e1 / t6;
  t8 = r->x * r->x;
  r->f = 0.1e1 + 0.66666666666666666668e-3 * t4 * t7 * t8;

  if(r->order < 1) return;

  r->dfdx = 0.13333333333333333334e-2 * t4 * t7 * r->x;

  if(r->order < 2) return;

  r->d2fdx2 = 0.13333333333333333334e-2 * t4 * t7;

  if(r->order < 3) return;

  r->d3fdx3 = 0.0e0;

  if(r->order < 4) return;


}

#define maple2c_order 3
#define maple2c_func  xc_gga_x_herman_enhance
