{"id":32202,"date":"2021-09-01T20:44:08","date_gmt":"2021-09-01T18:44:08","guid":{"rendered":"https:\/\/hooxies.nl\/?page_id=32202"},"modified":"2026-11-25T21:08:16","modified_gmt":"2026-11-25T20:08:16","slug":"poly234","status":"publish","type":"page","link":"https:\/\/hooxies.nl\/?page_id=32202","title":{"rendered":"POLY234"},"content":{"rendered":"<p><b>Display<\/b><br \/>\n<a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234.png\"><img decoding=\"async\" style=\"cursor:pointer; cursor:hand;width: 226px; height: 104px;\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234.png\" border=\"0\" \/><\/a> <a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2023\/02\/poly234-dm41x.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2023\/02\/poly234-dm41x.png\" alt=\"\" width=\"174\" height=\"104\"\/><\/a> <br \/>\n<em>(HP-41CX, Hewlett Packard 1983 and DM41X, <a href=\"https:\/\/www.swissmicros.com\/\" rel=\"noopener noreferrer\" target=\"_blank\">SwissMicros<\/a> 2020)<\/em><br \/>\n&nbsp;<\/p>\n<p><b>Overview<\/b><br \/>\nThe <tt>POLY234<\/tt> program calculates (!) the roots of 2<sup>nd<\/sup>, 3<sup>rd<\/sup> and 4<sup>th<\/sup> degree polynomials. Both real and complex roots can be calculated on the following basis:<\/p>\n<table align=\"left\">\n<tr>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \"><b>Degree<\/b><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \"><b>Polynomial expression<\/b><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \"><b>Method of calcuation<\/b><\/td>\n<\/tr>\n<tr>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\t2<sup>nd<\/sup><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\tf(<b>x<\/b>) = <b>x<\/b><sup>2<\/sup> + a<sub>1<\/sub><b>x<\/b> + a<sub>0<\/sub><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\tQuadratic formula<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\t3<sup>rd<\/sup><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\tf(<b>x<\/b>) = <b>x<\/b><sup>3<\/sup> + a<sub>2<\/sub><b>x<\/b><sup>2<\/sup> + a<sub>1<\/sub><b>x<\/b> + a<sub>0<\/sub><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\tCardano&#8217;s formula<\/td>\n<\/tr>\n<tr>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\t4<sup>th<\/sup><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\tf(<b>x<\/b>) = <b>x<\/b><sup>4<\/sup> + a<sub>3<\/sub><b>x<\/b><sup>3<\/sup> + a<sub>2<\/sub><b>x<\/b><sup>2<\/sup> + a<sub>1<\/sub><b>x<\/b> + a<sub>0<\/sub><\/td>\n<td align=\"center\" valign=\"middle\" style=\"border-style: dotted; border-width: 1px 1px 1px 1px; \">\n\t\t\tFerrari&#8217;s formula<\/td>\n<\/tr>\n<\/table>\n<p>\n<img decoding=\"async\" style=\"cursor:pointer; cursor:hand;width: 413px; height: 160px;\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/graphs234-413x160.png\" alt=\"\" \/><br \/>\n<br \/>\nAnother method of finding the roots of polynomials is through the Newton-Raphson method which is not part of this program. The reason being that finding roots by convergence is not deterministic and requires a different approach to programming.<br \/>\nPlease note my default <tt>FIX 5<\/tt> and European (flag 28) setting in below examples.<\/p>\n<p>&nbsp;<\/p>\n<p><b>Examples: 2<sup>nd<\/sup> Degrees<\/b><br \/>\n<a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example1a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example1a-413x111.png\" alt=\"\" width=\"413\" height=\"111\" \/><\/a><\/p>\n<p><a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example1b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example1b-413x111.png\" alt=\"\" width=\"413\" height=\"111\"\/><\/a><\/p>\n<p><a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example1c.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example1c-413x111.png\" alt=\"\" width=\"413\" height=\"111\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Examples: 3<sup>rd<\/sup> Degrees<\/b><br \/>\n<a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example2a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example2a-413x137.png\" alt=\"\" width=\"413\" height=\"137\" \/><\/a><\/p>\n<p><a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example2b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example2b-413x137.png\" alt=\"\" width=\"413\" height=\"137\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Examples: 4<sup>th<\/sup> Degrees<\/b><br \/>\n<a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example3a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example3a-413x160.png\" alt=\"\" width=\"413\" height=\"160\"\/><\/a><\/p>\n<p><a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example3b.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-example3b-413x201.png\" alt=\"\" width=\"413\" height=\"201\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Program Listing<\/b><br \/>\nThe listing of program POLY234 is given on the next page.  The <tt>FIX 7<\/tt> step in line 362 can sometimes lead to erroneous complex roots due to numerical limitations of the calculator&#8217;s mantissa. You may have to change it to <tt>FIX 6<\/tt> when working with small and large coefficient values.<\/p>\n<p><a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-program1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-program1-228x300.png\" alt=\"\" width=\"200\" height=\"263\"  \/><\/a> <a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-program2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-program2-228x300.png\" alt=\"\" width=\"200\" height=\"263\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Registers, Labels and Flags<\/b><br \/>\n<a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-registers.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234-registers-413x262.png\" alt=\"\" width=\"413\" height=\"262\" \/><\/a><br \/>\n&nbsp;<\/p>\n<p><b>Downloads<\/b><br \/>\nPDF format of program <a rel=\"hp-41cx_poly234\" href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2023\/02\/poly234.pdf\">POLY234<\/a>.<br \/>\nRAW\/TXT format of program <a href=\"https:\/\/hooxies.nl\/wp-content\/uploads\/2021\/09\/poly234.zip\">POLY234<\/a> (in zip file).<br \/>\n&nbsp;<\/p>\n<div style=\"font-size: 12px;\">This program is copyright and is supplied without representation or warranty of any kind. The author assumes no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof<\/div>\n<p><i>&copy; 2006-2021 by Auke Hoekstra<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Display (HP-41CX, Hewlett Packard 1983 and DM41X, SwissMicros 2020) &nbsp; Overview The POLY234 program calculates (!) the roots of 2nd, 3rd and 4th degree polynomials. Both real and complex roots can be calculated on the following basis: Degree Polynomial expression Method of calcuation 2nd f(x) = x2 + a1x + a0 Quadratic formula 3rd f(x) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_oct_exclude_from_cache":false,"footnotes":""},"class_list":["post-32202","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/32202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hooxies.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32202"}],"version-history":[{"count":1,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/32202\/revisions"}],"predecessor-version":[{"id":57404,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/32202\/revisions\/57404"}],"up":[{"embeddable":true,"href":"https:\/\/hooxies.nl\/index.php?rest_route=\/wp\/v2\/pages\/2"}],"wp:attachment":[{"href":"https:\/\/hooxies.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}