/**
   A class of static methods to perform various mathematical
   computations, including the square root.
   @author Frank M. Carrano
   @author Timothy M. Henry
   @version 4.0
*/
public class JoeMath
{
   /** Computes the square root of a real number.
       @param value  A real value whose square root is desired.
       @return  A string containing the square root. */
   public static String squareRoot(double value)
   {
      String result = "";
      try
      {
         Double temp = OurMath.squareRoot(value);
         result = temp.toString();
      }
      catch (SquareRootException e)
      {
         Double temp = OurMath.squareRoot(-value);
         result = temp.toString() + "i";
      }
      
      return result;
   } // end squareRoot
   
   // < Other methods not relevant to this discussion could be here. >
} // end JoeMath