/*********************************************************************

DPUSER function ADDQUAD:
add data values/errors quadratically

function arguments:
- values:	vector containing values to combine

function output:
quadratic sum of "values"

example:

DPUSER> hhh = [3.21, 4.56, 0, 17, 8]
DPUSER> print addquad(hhh)
19.5984

**********************************************************************/


function addquad, values {

  square = values * values
  sum = total(square)

  addquad = sqrt(sum)

}

