Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: OT: Finding Factor Closest To Square Rootby QM (Parson) |
on Feb 21, 2005 at 01:26 UTC ( [id://432928]=note: print w/replies, xml ) | Need Help?? |
Programming F(n) for benchmarking purposes is interesting. However, the fastest way of all is probably:Yes, but I'd like to understand for myself why various approaches are slower. Which means I have to find a number of independent approaches. If n is extremely large, the exponentiation might become inaccurate, though.That's why you use arbitrary precision, like one of the Math::Big* modules. -QM
In Section
Seekers of Perl Wisdom
|
|