mainSR2 - << mysqrt(x,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* Comptuing square roots. Author: Eric Van Wyk, Ted Kaminski. Date: Feb 22, 2010 */ #include <iostream> #include <string> #include "SquareRootF.h" using namespace std ; int main() { cout << "Computing some sample square roots." << endl << endl ; double x = 3.1415 ; cout << "The square root of " << x << " is "
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: &amp;lt;&amp;lt; mysqrt(x, 0.0001) &amp;lt;&amp;lt; endl ; x = 18.55 ; cout &amp;lt;&amp;lt; &amp;quot;The square root of &amp;quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &amp;quot; is &amp;quot; &amp;lt;&amp;lt; mysqrt(x, 0.0001) &amp;lt;&amp;lt; endl ; x = 456.789 ; cout &amp;lt;&amp;lt; &amp;quot;The square root of &amp;quot; &amp;lt;&amp;lt; x &amp;lt;&amp;lt; &amp;quot; is &amp;quot; &amp;lt;&amp;lt; mysqrt(x, 0.0001) &amp;lt;&amp;lt; endl ; }...
View Full Document

Ask a homework question - tutors are online