<b>(a)</b> M(a,b)>=a, <b>(b)</b> M(a,b)<a+0.5b <b>(c)</b> r^2=(M-a)^2=M^2+a^2-2*M*a=2*a^2+b^2-2*M*a; <b>(d)</b> b^2=r^2+2*a*r, (0<=r<0.5b) <b>(e)</b> (r+d)^2+2*a*(r+d)=(r^2+2*a*r)+(d^2+2*r*d+2*a*d)
Figure 1: Algorithm description.
Dr. Dobb's is part of the Informa Tech Division of Informa PLC
This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.
<b>(a)</b> M(a,b)>=a, <b>(b)</b> M(a,b)<a+0.5b <b>(c)</b> r^2=(M-a)^2=M^2+a^2-2*M*a=2*a^2+b^2-2*M*a; <b>(d)</b> b^2=r^2+2*a*r, (0<=r<0.5b) <b>(e)</b> (r+d)^2+2*a*(r+d)=(r^2+2*a*r)+(d^2+2*r*d+2*a*d)
To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy. | |
This month,
Dr. Dobb's Journal is devoted to mobile programming. We introduce you to Apple's new Swift programming language, discuss the perils of being the third-most-popular mobile platform, revisit SQLite on Android
, and much more!
Download the latest issue today. >>