@don it is, actually i wanted to give a smaller example so wrote like that.
@arpit thanks, powl() solved the problem. On Mon, Mar 26, 2012 at 7:00 PM, Don <[email protected]> wrote: > Why use pow to compute a square when * is significantly faster? > Don > > On Mar 26, 6:09 am, shady <[email protected]> wrote: > > Hi, > > i am using pow() function in C++ to calculate square of 999999937, but > to > > my amazement it is giving one less than actual value. Since it returns > > double, i am adding 10e-5 to get the correct value, but still no > > improvement. Any idea ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
