Source of J3.5.java


  1: // @author Frank M. Carrano, Timothy M. Henry
  2: // @version 5.0
  3: String result = "";
  4: try
  5: {
  6:    Double temp = OurMath.squareRoot(value);
  7:    result = temp.toString();
  8: }

 10: catch (SquareRootException e)
 11: {  // Assertion: value is negative
 12:    Double temp = OurMath.squareRoot(−value);
 13:    result = temp.toString() + "i";
 14: }