<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sierpinski triangles with LISP code in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497799#M105347</link>
    <description>&lt;P&gt;Another problem with your code is that it is doing integer math.&amp;nbsp; You want to do floating point math and not round to an integer value.&amp;nbsp; Change the statements such as&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq pax (/ (+ (car t0) (car t1)) 2))&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq pax (/ (+ (car t0) (car t1)) 2.))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Either the numerator or denominator must&amp;nbsp; be a real number to ensure a floating point calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check &lt;A href="http://www.lee-mac.com/sierpinski.html" target="_blank" rel="noopener"&gt;this&lt;/A&gt; link for a sophisticated vlisp implementation of Sierpinski's triangle.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2020 01:51:35 GMT</pubDate>
    <dc:creator>leeminardi</dc:creator>
    <dc:date>2020-05-07T01:51:35Z</dc:date>
    <item>
      <title>Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497102#M105343</link>
      <description>&lt;P&gt;I am trying to draw Sierpinski triangles using LISP code (recursive)&amp;nbsp; and LINE command. The code ran for order of 1 (m1 =1). But for higher order I am getting irregular pattern. Also, an error " error: bad function: 48 or 75 etc. etc." displayed on every run.&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;;;;; Function for Sierpinski triangles&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(defun drawtriangle1 (p1 p2 p3)&lt;BR /&gt;(command "line" p1 p2 p3 "c")&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(defun sierpinski2 (t0 t1 t2 limit1)&lt;BR /&gt;(if (&amp;lt; 0 limit1)&lt;BR /&gt;(&lt;BR /&gt;(setq pax (/ (+ (car t0) (car t1)) 2))&lt;BR /&gt;(setq pay (/ (+ (cadr t0) (cadr t1)) 2))&lt;BR /&gt;(setq pbx (/ (+ (car t1) (car t2)) 2))&lt;BR /&gt;(setq pby (/ (+ (cadr t1) (cadr t2)) 2))&lt;BR /&gt;(setq pcx (/ (+ (car t2) (car t0)) 2))&lt;BR /&gt;(setq pcy (/ (+ (cadr t2) (cadr t0)) 2))&lt;BR /&gt;(setq pa (list pax pay))&lt;BR /&gt;(setq pb (list pbx pby))&lt;BR /&gt;(setq pc (list pcx pcy))&lt;BR /&gt;(sierpinski2 t0 pa pc (1- limit1))&lt;BR /&gt;(sierpinski2 pa t1 pb (1- limit1))&lt;BR /&gt;(sierpinski2 pc pb t2 (1- limit1))&lt;BR /&gt;);_end of if&lt;BR /&gt;(drawtriangle1 t0 t1 t2)&lt;BR /&gt;);_ end of if-else part&lt;BR /&gt;);_end of sierpinski2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;;;;; Define the initial coordinates&lt;BR /&gt;(setq v0 (list 50 87))&lt;BR /&gt;(setq v1 (list 100 0))&lt;BR /&gt;(setq v2 (list 0 0))&lt;BR /&gt;(setq m1 2);_order of fractal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:st5 ()&lt;BR /&gt;(sierpinski2 v0 v1 v2 m1)&lt;BR /&gt;);_ end of st5 function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samim&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 18:49:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497102#M105343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497156#M105344</link>
      <description>&lt;P&gt;Without delving very deep, I notice &lt;FONT color="#FF0000"&gt;something&lt;/FONT&gt; appears to be missing:&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(if (&amp;lt; 0 limit1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; (&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;progn&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pax (/ (+ (car t0) (car t1)) 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pay (/ (+ (cadr t0) (cadr t1)) 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pbx (/ (+ (car t1) (car t2)) 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pby (/ (+ (cadr t1) (cadr t2)) 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pcx (/ (+ (car t2) (car t0)) 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pcy (/ (+ (cadr t2) (cadr t0)) 2))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pa (list pax pay))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pb (list pbx pby))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pc (list pcx pcy))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (sierpinski2 t0 pa pc (1- limit1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (sierpinski2 pa t1 pb (1- limit1))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (sierpinski2 pc pb t2 (1- limit1))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp; )&lt;/STRONG&gt;; progn&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;);_end of if&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 19:17:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497156#M105344</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-05-06T19:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497196#M105345</link>
      <description>&lt;P&gt;Thanks for your quick reply.&lt;/P&gt;&lt;P&gt;Adding PROGN improves the output . It displayed the top correctly.&amp;nbsp; But next two subsections (pa t1 pb) and (pc pb t2) are not working properly.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sierpinski21.PNG" style="width: 640px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/766440i9F85AE11B857A7B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="sierpinski21.PNG" alt="sierpinski21.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 19:33:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497196#M105345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-06T19:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497734#M105346</link>
      <description>&lt;P&gt;Or did I misunderstand where the end of the (progn) function should fall? Should it be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;(if (&amp;lt; 0 limit1)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;progn&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#FF0000"&gt; ; then&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (setq pax (/ (+ (car t0) (car t1)) 2))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00CCFF"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; .... all the stuff in between ....&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; (sierpinski2 pc pb t2 (1- limit1))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; );_end of&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;progn&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#FF0000"&gt; [then]&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;FONT color="#000000"&gt;(drawtriangle1 t0 t1 t2) &lt;FONT color="#FF0000"&gt;; &lt;STRONG&gt;else&lt;/STRONG&gt; argument&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;);_ end of if&lt;/FONT&gt;&lt;FONT color="#999999"&gt;&lt;STRIKE&gt;-else part&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#999999"&gt;&lt;STRIKE&gt;Also, I wonder about those &lt;STRONG&gt;(sierpinski2)&lt;/STRONG&gt; functions called from &lt;EM&gt;within the definition of the function itself&lt;/EM&gt;.&amp;nbsp; Should those be &lt;STRONG&gt;(drawtriangle)&lt;/STRONG&gt; functions instead?&amp;nbsp;&lt;/STRIKE&gt;&lt;FONT color="#333333"&gt;&amp;nbsp; [Never mind -- I think I see the recursive thing that's going on.]&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 00:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497734#M105346</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-05-07T00:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497799#M105347</link>
      <description>&lt;P&gt;Another problem with your code is that it is doing integer math.&amp;nbsp; You want to do floating point math and not round to an integer value.&amp;nbsp; Change the statements such as&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq pax (/ (+ (car t0) (car t1)) 2))&lt;/LI-CODE&gt;&lt;P&gt;to&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq pax (/ (+ (car t0) (car t1)) 2.))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Either the numerator or denominator must&amp;nbsp; be a real number to ensure a floating point calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check &lt;A href="http://www.lee-mac.com/sierpinski.html" target="_blank" rel="noopener"&gt;this&lt;/A&gt; link for a sophisticated vlisp implementation of Sierpinski's triangle.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 01:51:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497799#M105347</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2020-05-07T01:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497920#M105348</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/822616"&gt;@leeminardi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Another problem with your code is that it is doing integer math.&amp;nbsp; You want to do floating point math and not round to an integer value.&amp;nbsp; Change the statements such as&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq pax (/ (+ (car t0) (car t1)) 2))&lt;/LI-CODE&gt;
&lt;P&gt;to&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(setq pax (/ (+ (car t0) (car t1)) 2.))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Either the numerator or denominator must&amp;nbsp; be a real number to ensure a floating point calculations.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That was in Reply to me, but &lt;EM&gt;I'm&lt;/EM&gt;&amp;nbsp; not doing integer math --&amp;nbsp;@Anonymous is.&amp;nbsp; If in actual operation the starting triangle-defining points v0, v1 and v2 would come from something like (getpoint), or be extracted from something like entity data [e.g. Polyline vertices or something], then their coordinates would be real numbers, and the 2 [without decimal] would be fine.&amp;nbsp; They could also keep the 2 as an integer and make the coordinates of those points real numbers in (setq)ing them numerically, i.e.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fbfbfb; color: #666666; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;(setq v0 (list 50&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt; 87&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;))&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: #666666; font-family: &amp;amp;quot; artifakt&amp;amp;quot;,tahoma,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fbfbfb; color: #666666; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;(setq v1 (list 100&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt; 0&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;))&lt;/SPAN&gt;&lt;BR style="box-sizing: border-box; color: #666666; font-family: &amp;amp;quot; artifakt&amp;amp;quot;,tahoma,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fbfbfb; color: #666666; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;(setq v2 (list 0&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt; &lt;/FONT&gt;0&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/FONT&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fbfbfb; color: #666666; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;In any case, with values like these, the skewed-ness of their image wouldn't be explained only by that distinction, since the only incorrect result would be that (/ 87 2) yields 43, not 43.5 -- that would warp things only slightly.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fbfbfb; color: #666666; font-family: 'Artifakt',Tahoma,Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;[Later we can get into briefer ways to find the location midway between two others.]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 03:43:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9497920#M105348</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-05-07T03:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9499373#M105349</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp; my reply was intended for the OP.&amp;nbsp; I know you are experienced enough to understand the concepts of mixed mode math.&amp;nbsp; Back in the day we had to be acutely aware of it before programs like Excel let you be sloppy.&amp;nbsp; My apologies.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I wasn't&amp;nbsp; trying to address the skewness of the results which indicate a more subtle coding problem.&amp;nbsp; The integer math problem does show the cause of the slight offset lines the program creates when all the coordinates of the points are integers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 14:31:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9499373#M105349</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2020-05-07T14:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sierpinski triangles with LISP code</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9499385#M105350</link>
      <description>&lt;P&gt;have you tried here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2020 14:33:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/sierpinski-triangles-with-lisp-code/m-p/9499385#M105350</guid>
      <dc:creator>qnologi</dc:creator>
      <dc:date>2020-05-07T14:33:53Z</dc:date>
    </item>
  </channel>
</rss>

