# Copyright (c) 1989 The Regents of the University of California.
# This code is derived from software contributed to Berkeley by
# %sccs.include.redist.sh%
# @(#)sqroot.m4 5.2 (Berkeley) %G%
`ifelse(eval($1<0),1,negative-square-root,
`square_root_aux($1, 1, eval(($1+1)/2))')')
`square_root_aux($1, $3, eval(($3+($1/$3))/2))')')