01: package eg;
02:
03: // Copyright (c) 2002 Cunningham & Cunningham, Inc.
04: // Released under the terms of the GNU General Public License version 2 or later.
05:
06: import fit.ColumnFixture;
07:
08: public class Sqrt extends ColumnFixture {
09: public double value;
10:
11: public double sqrt() throws Exception {
12: if (value < 0)
13: throw new Exception("netagive sqrt");
14: return Math.sqrt(value);
15: }
16: }
|