Received: from PCH.mit.edu (18.7.21.50) by mail.efplus.com (192.168.0.8) with Microsoft SMTP Server (TLS) id 8.3.485.1; Fri, 18 Sep 2020 03:37:32 -0700 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 08IAPS6c030060; Fri, 18 Sep 2020 06:25:55 -0400 Received: from outgoing-exchange-3.mit.edu (OUTGOING-EXCHANGE-3.MIT.EDU [18.9.28.13]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 08IAPSoa030057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 18 Sep 2020 06:25:28 -0400 Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 08IAPDHX028345 for ; Fri, 18 Sep 2020 06:25:28 -0400 Received: from oc11expo8.exchange.mit.edu (18.9.4.13) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Fri, 18 Sep 2020 06:25:04 -0400 Received: from oc11exhyb7.exchange.mit.edu (18.9.1.112) by oc11expo8.exchange.mit.edu (18.9.4.13) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Fri, 18 Sep 2020 06:25:20 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by oc11exhyb7.exchange.mit.edu (18.9.1.112) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Fri, 18 Sep 2020 06:25:20 -0400 Received: from DM6PR10CA0019.namprd10.prod.outlook.com (2603:10b6:5:60::32) by MN2PR01MB6062.prod.exchangelabs.com (2603:10b6:208:191::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.14; Fri, 18 Sep 2020 10:25:18 +0000 Received: from DM3NAM03FT054.eop-NAM03.prod.protection.outlook.com (2603:10b6:5:60:cafe::1c) by DM6PR10CA0019.outlook.office365.com (2603:10b6:5:60::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13 via Frontend Transport; Fri, 18 Sep 2020 10:25:18 +0000 Received: from mail-ej1-f52.google.com (209.85.218.52) by DM3NAM03FT054.mail.protection.outlook.com (10.152.83.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15 via Frontend Transport; Fri, 18 Sep 2020 10:25:18 +0000 Received: by mail-ej1-f52.google.com with SMTP id i26so7333456ejb.12 for ; Fri, 18 Sep 2020 03:25:18 -0700 (PDT) From: RussellMc To: Microcontroller discussion list - Public. CC: ApptechNZ Sender: "piclist-bounces@mit.edu" Date: Fri, 18 Sep 2020 03:24:40 -0700 Subject: Re: [AVR] square on AVR Thread-Topic: [AVR] square on AVR Thread-Index: AdaNp7ePZ/RrYj8MTbWcM9sWxbnQNw== Message-ID: References: <20200917143553.1f650e132099b5782f4d0416@tom.com> <20200918103123.4c19706e1106c492a8a11695@tom.com> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <20200918103123.4c19706e1106c492a8a11695@tom.com> Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-AuthSource: TS500.efplus4.local X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-SenderIdResult: Pass X-MS-Exchange-Organization-PRD: mit.edu X-MS-TNEF-Correlator: received-spf: Pass (protection.outlook.com: domain of gmail.com designates 209.85.218.52 as permitted sender) receiver=protection.outlook.com; client-ip=209.85.218.52; helo=mail-ej1-f52.google.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hNgf382/MwiLc/Fr0P3RnT23F/CTfbXNl2KqZqYmRbs=; b=PSd/9sG5o6BdDqpQKXqEne54gBItqinA4qKeZeyTCq7EKXuvaEgXtvcmzHgvHNPycY X2Q2Zjji78ZhwtuVJ4P4rZWMPuXgtFTHxdrCQmcchdBuKs/laV9lAHBpKMlgW7hCV+wa C7FcSiMUlocHvJjhnzX1klMupWEFxL6V1+z/NBipLM2WFf6howQUlMnMlKV4LOX6uQrS ukURwnRwbUYsQNNtuJk9WJ8ELgld94bcLcMwpuMHtFqxj4ZIHRKa5uVqyGui0IVqEo/D 8n9njKiQfAWpjpg53k2kqwDFtlPCDXzO1m/sgxiyU4HYAqUcG4fkWlXhsxO1UnWadbs5 jBBA== authentication-results: spf=pass (sender IP is 209.85.218.52) smtp.mailfrom=gmail.com; mit.edu; dkim=pass (signature was verified) header.d=gmail.com; mit.edu; dmarc=pass action=none header.from=gmail.com; errors-to: piclist-bounces@mit.edu list-id: "Microcontroller discussion list - Public." list-post: x-beenthere: piclist@mit.edu x-mailman-version: 2.1.6 x-received: by 2002:a17:906:441:: with SMTP id e1mr12008959eja.396.1600424716797; Fri, 18 Sep 2020 03:25:16 -0700 (PDT) x-topics: [AVR] x-content-filtered-by: Mailman/MimeDel 2.1.6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 A friend, who is a highly competent coder says: I have long used a fast integer square root algorithm which is very similar to binary division. I came across it in a book titled Digital Computer Design Fundamentals by Yaohan Chu published by McGraw Hill in 1962. It predates ISBN's but has a Library of Congress Catalog card number 62-11193. The author was a professor in the Department of Electrical Engineering at the University of Maryland. The square root algorithm is described starting on page 43 (section 1-10). I still have the book - it was a "discard" from the U of A Engineering Library when I was doing my Masters. It's a fascinating read covering the technologies of the time. Copies may be found here: Amazon $4.25 https://www.amazon.com/Digital-Computer-Design-Fundamentals-Yaohan/dp/00701= 08005 ABEbooks https://www.abebooks.com/servlet/SearchResults?sts=3Dt&cm_sp=3DSearchF-_-ho= me-_-Results&an=3Dyaohan+chu&tn=3Ddigital+computer+design+fundamentals&kn= =3D&isbn=3D Russell --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .