Reworex the pal example figure.
Some checks failed
Latex Build / LatexBuild (push) Failing after 20s
Some checks failed
Latex Build / LatexBuild (push) Failing after 20s
This commit is contained in:
parent
ffc30c2c0f
commit
7902ac53a3
@ -1,44 +1,62 @@
|
||||
<mxfile host="Electron" modified="2023-11-18T01:35:24.082Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.7.5 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36" etag="PcebU23DO2oPR1TpSGAX" version="21.7.5" type="device">
|
||||
<mxfile host="Electron" modified="2023-11-18T03:05:32.571Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.7.5 Chrome/114.0.5735.289 Electron/25.8.1 Safari/537.36" etag="J9GrhhPs_eTHDoNvrM24" version="21.7.5" type="device">
|
||||
<diagram name="Seite-1" id="3Sw_KYT27iZ8JMehEK1P">
|
||||
<mxGraphModel dx="1247" dy="734" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
|
||||
<root>
|
||||
<mxCell id="0" />
|
||||
<mxCell id="1" parent="0" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-1" value="Q: Roger has 5 tennis balls. He buys 2 more cans of<br>tennis balls. Each can has 3 tennis balls. How many<br>tennis balls does he have now?<br><br>A: Roger started with 5 tennis balls. 2 cans of 3 tennis<br>balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.<br><br>Q: The bakers at the Beverly Hills Bakery baked 200<br>loaves of bread on Monday morning. They sold 93 loaves<br>in the morning and 39 loaves in the afternoon. A grocery<br>store returned 6 unsold loaves. How many loaves of<br>bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
|
||||
<mxGeometry x="20" y="290" width="250" height="350" as="geometry" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-31" value="<h2><br></h2>" style="rounded=1;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingTop=11;" vertex="1" parent="1">
|
||||
<mxGeometry x="550" y="230" width="270" height="740" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-32" value="<h2>ChatGPT 4 Example</h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="580" y="240" width="210" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-29" value="<h2><br></h2>" style="rounded=1;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingTop=11;" vertex="1" parent="1">
|
||||
<mxGeometry x="280" y="230" width="270" height="740" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-30" value="<h2>PAL Example</h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="347.5" y="240" width="135" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-25" value="<h2><br></h2>" style="rounded=1;whiteSpace=wrap;html=1;labelPosition=center;verticalLabelPosition=top;align=center;verticalAlign=bottom;spacingTop=11;" vertex="1" parent="1">
|
||||
<mxGeometry x="10" y="230" width="270" height="740" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-1" value="<b>Q</b>: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?<br><br><b>A</b>: Roger started with 5 tennis balls. 2 cans of 3 tennis<br>balls each is 6 tennis balls. 5 + 6 = 11. The answer is 11.<br><br><b>Q</b>: The bakers at the Beverly Hills Bakery baked 200 loaves of bread on Monday morning. They sold 93 loaves in the morning and 39 loaves in the afternoon. A grocery<br>store returned 6 unsold loaves. How many loaves of bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
|
||||
<mxGeometry x="20" y="290" width="250" height="300" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-2" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
|
||||
<mxGeometry x="50" y="280" width="50" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-8" value="<div>Q: Roger has 5 tennis balls. He buys 2 more cans of</div><div>tennis balls. Each can has 3 tennis balls. How many</div><div>tennis balls does he have now?</div><div><br></div><div>A: <font face="Times New Roman">#&nbsp;<span style="background-color: initial;">Roger started with 5 tennis balls.</span></font></div><div><font face="Times New Roman">tennis_balls = 5</font></div><div><font face="Times New Roman"># 2 cans of 3 tennis balls each is</font></div><div><font face="Times New Roman">bought_balls = 2 * 3</font></div><div><font face="Times New Roman"># tennis balls. The answer is</font></div><div><font face="Times New Roman">answer = tennis_balls + bought_balls</font></div><div><br></div><div>Q: The bakers at the Beverly Hills Bakery baked 200</div><div>loaves of bread on Monday morning. They sold 93 loaves</div><div>in the morning and 39 loaves in the afternoon. A grocery</div><div>store returned 6 unsold loaves. How many loaves of bread</div><div>did they have left?</div>" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
|
||||
<mxGeometry x="289" y="290" width="250" height="350" as="geometry" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-8" value="<div><b>Q</b>: Roger has 5 tennis balls. He buys 2 more cans of&nbsp;<span style="background-color: initial;">tennis balls. Each can has 3 tennis balls. How many&nbsp;</span><span style="background-color: initial;">tennis balls does he have now?</span></div><div><br></div><div><b>A</b>:&nbsp;</div><div style="font-size: 10px;"><pre class="python"><i># Roger started with 5 tennis balls.</i><br>tennis_balls <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">5</span><br><span style="color: #808080; font-style: italic;"># 2 cans of 3 tennis balls each is</span><br>bought_balls <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">2</span> * <span style="color: #ff4500;">3</span><br><span style="color: #808080; font-style: italic;"># tennis balls. The answer is</span><br>answer <span style="color: #66cc66;">=</span> tennis_balls + bought_balls</pre></div><div><span style="background-color: initial;"><b>Q</b>: The bakers at the Beverly Hills Bakery baked 200&nbsp;</span><span style="background-color: initial;">loaves of bread on Monday morning. They sold 93 loaves&nbsp;</span><span style="background-color: initial;">in the morning and 39 loaves in the afternoon. A grocery</span></div><div>store returned 6 unsold loaves. How many loaves of bread&nbsp;<span style="background-color: initial;">did they have left?</span></div>" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
|
||||
<mxGeometry x="289" y="290" width="250" height="300" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-9" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
|
||||
<mxGeometry x="330" y="280" width="50" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-10" value="Q: The bakers at the Beverly Hills Bakery baked 200<br>loaves of bread on Monday morning. They sold 93 loaves<br>in the morning and 39 loaves in the afternoon. A grocery<br>store returned 6 unsold loaves. How many loaves of<br>bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
|
||||
<mxGeometry x="560" y="289" width="250" height="350" as="geometry" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-10" value="<b>Q</b>: The bakers at the Beverly Hills Bakery baked 200 loaves of bread on Monday morning. They sold 93 loaves in the morning and 39 loaves in the afternoon. A&nbsp; grocery&nbsp;store returned 6 unsold loaves. How many loaves of bread did they have left?" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;" vertex="1" parent="1">
|
||||
<mxGeometry x="560" y="290" width="250" height="300" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-11" value="Eingabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;" vertex="1" parent="1">
|
||||
<mxGeometry x="600" y="280" width="50" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-12" value="A: The bakers started with 200 loaves. They sold 93 in
the morning and 39 in the afternoon. So they sold 93 +
39 = 132 loaves. The grocery store returned 6 loaves. So
they had 200 - 132 - 6 = 62 loaves left.
The answer is 62." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
|
||||
<mxGeometry x="20" y="665" width="250" height="345" as="geometry" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-12" value="<b>A</b>: The bakers started with 200 loaves. They sold 93 in<br>the morning and 39 in the afternoon. So they sold 93 +<br>39 = 132 loaves. The grocery store returned 6 loaves. So<br>they had 200 - 132 - 6 = 62 loaves left.<br>The answer is 62." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#f8cecc;strokeColor=#b85450;" vertex="1" parent="1">
|
||||
<mxGeometry x="20" y="610" width="250" height="345" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-13" value="<div style="font-size: 12px;">A:&nbsp;</div><div style="font-size: 12px;"><font face="Times New Roman"># The bakers started with 200 loaves</font></div><div style="font-size: 12px;"><font face="Times New Roman">loaves_baked = 200</font></div><div style="font-size: 12px;"><font face="Times New Roman"># They sold 93 in the morning and 39 in the afternoon</font></div><div style="font-size: 12px;"><font face="Times New Roman">loaves_sold_morning = 93</font></div><div style="font-size: 12px;"><font face="Times New Roman">loaves_sold_afternoon = 39</font></div><div style="font-size: 12px;"><font face="Times New Roman"># The grocery store returned 6 loaves.</font></div><div style="font-size: 12px;"><font face="Times New Roman">loaves_returned = 6</font></div><div style="font-size: 12px;"><font face="Times New Roman"># The answer is</font></div><div style="font-size: 12px;"><font face="Times New Roman">answer = loaves_baked - loaves_sold_morning</font></div><div style="font-size: 12px;"><font face="Times New Roman">- loaves_sold_afternoon + loaves_returned</font></div><div style="font-size: 12px;">print(answer) # -&gt; 74</div><br><br>When the script is executed 74 is printed." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
|
||||
<mxGeometry x="289" y="665" width="250" height="340" as="geometry" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-13" value="<div style=""><b>A</b>:&nbsp;<span style="background-color: initial;"><font face="monospace"># The bakers started with 200&nbsp;</font></span></div><div style=""><div style="" class="row mt-2" id="preview"><pre style="" class="python"><font style="font-size: 12px;"># loaves</font></pre><pre style="" class="python"><font style="font-size: 12px;">loaves_baked <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">200</span><br><span style="color: #808080; font-style: italic;"># They sold 93 in the morning <br># and 39 in the afternoon</span><br>loaves_sold_morning <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">93</span><br>loaves_sold_afternoon <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">39</span><br><span style="color: #808080; font-style: italic;"># The grocery store returned <br># 6 loaves.</span><br>loaves_returned <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">6</span><br><span style="color: #808080; font-style: italic;"># The answer is</span><br>answer <span style="color: #66cc66;">=</span> (<br></font> loaves_baked <br> - loaves_sold_morning<br> - loaves_sold_afternoon <br> + loaves_returned<br></pre><pre style="" class="python"><font style="font-size: 12px;"><span style="color: #ff7700;font-weight:bold;">print</span>(answer) <span style="color: #808080; font-style: italic;"># -&gt; 74</span></font></pre></div></div>When the script is executed 74 is printed." style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fontSize=12;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
|
||||
<mxGeometry x="289" y="610" width="250" height="345" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-18" value="<div style="font-size: 11px;"><div><font style="font-size: 11px;">A: The Beverly Hills Bakery had 74 loaves of bread left after their sales and the return of unsold loaves. <br><br></font></div></div><div style="font-size: 11px;"><font style="font-size: 11px;">Analysis:<br></font><div><font face="Times New Roman" style="font-size: 11px;"># Number of loaves baked</font></div><div><font face="Times New Roman" style="font-size: 11px;">loaves_baked = 200</font></div><div><font face="Times New Roman" style="font-size: 11px;"><br></font></div><div><font face="Times New Roman" style="font-size: 11px;"># Number of loaves sold in the morning and afternoon</font></div><div><font face="Times New Roman" style="font-size: 11px;">loaves_sold_morning = 93</font></div><div><font face="Times New Roman" style="font-size: 11px;">loaves_sold_afternoon = 39</font></div><div><font face="Times New Roman" style="font-size: 11px;"><br></font></div><div><font face="Times New Roman" style="font-size: 11px;"># Number of loaves returned from the grocery store</font></div><div><font face="Times New Roman" style="font-size: 11px;">loaves_returned = 6</font></div><div><font face="Times New Roman" style="font-size: 11px;"><br></font></div><div><font face="Times New Roman" style="font-size: 11px;"># Calculating the remaining loaves</font></div><div><font face="Times New Roman" style="font-size: 11px;">remaining_loaves = loaves_baked - (loaves_sold_morning + loaves_sold_afternoon) + loaves_returned</font></div><div><font face="Times New Roman" style="font-size: 11px;">remaining_loaves</font></div></div><div style="font-size: 11px;"><font style="font-size: 11px;"><br></font></div><div style="font-size: 11px;"><br></div><div class="flex justify-between empty:hidden gizmo:mt-1 gizmo:justify-start gizmo:gap-3 lg:block gizmo:lg:flex"><div class="text-gray-400 flex self-end lg:self-center justify-center gizmo:lg:justify-start mt-2 gizmo:mt-0 visible gap-1"></div></div>" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
|
||||
<mxGeometry x="560" y="665" width="250" height="340" as="geometry" />
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-18" value="<div style="font-size: 11px;"><div><font style="font-size: 11px;"><b>A</b>: </font><font style="font-size: 11px;">The Beverly Hills Bakery had 74 loaves of bread left after their sales and the return of unsold loaves. </font><font face="monospace" style="font-size: 11px;"><br></font><span style="background-color: initial;"><b style=""><i>Internal executed Analysis:</i></b></span><font face="monospace" style="font-size: 11px;"><br></font></div></div><div style="font-size: 11px;"><pre class="python"><pre class="python"># Number of loaves baked<br>loaves_baked <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">200</span><br><span style="color: #808080; font-style: italic;"># Number of loaves sold in the </span><br><span style="color: #808080; font-style: italic;"># morning and afternoon</span><br>loaves_sold_morning <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">93</span><br>loaves_sold_afternoon <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">39</span><br><span style="color: #808080; font-style: italic;"># Number of loaves returned </span><br><span style="color: #808080; font-style: italic;"># from the grocery store</span><br>loaves_returned <span style="color: #66cc66;">=</span> <span style="color: #ff4500;">6</span><br><span style="color: #808080; font-style: italic;"># Calculating the remaining loaves</span><br>remaining_loaves <span style="color: #66cc66;">=</span> (<br> loaves_baked<br> - (<br> loaves_sold_morning<br> + loaves_sold_afternoon<br> ) <br> + loaves_returned<br>remaining_loaves</pre></pre></div><div class="flex justify-between empty:hidden gizmo:mt-1 gizmo:justify-start gizmo:gap-3 lg:block gizmo:lg:flex"><div class="text-gray-400 flex self-end lg:self-center justify-center gizmo:lg:justify-start mt-2 gizmo:mt-0 visible gap-1"></div></div>" style="rounded=1;whiteSpace=wrap;html=1;align=left;spacingTop=0;spacingLeft=10;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
|
||||
<mxGeometry x="560" y="610" width="250" height="345" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-20" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
|
||||
<mxGeometry x="50" y="655" width="50" height="20" as="geometry" />
|
||||
<mxGeometry x="50" y="600" width="50" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-21" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
|
||||
<mxGeometry x="330" y="655" width="50" height="20" as="geometry" />
|
||||
<mxGeometry x="330" y="600" width="50" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-22" value="Ausgabe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#60a917;fontColor=#ffffff;strokeColor=#2D7600;" vertex="1" parent="1">
|
||||
<mxGeometry x="600" y="655" width="50" height="20" as="geometry" />
|
||||
<mxGeometry x="600" y="600" width="50" height="20" as="geometry" />
|
||||
</mxCell>
|
||||
<mxCell id="7yxbpYrR7u7Zo4rXAfb2-28" value="<h2>CoT Example</h2>" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
|
||||
<mxGeometry x="77.5" y="240" width="135" height="30" as="geometry" />
|
||||
</mxCell>
|
||||
</root>
|
||||
</mxGraphModel>
|
||||
|
BIN
PAL Example Expanded.drawio.pdf
Normal file
BIN
PAL Example Expanded.drawio.pdf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user