<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><p class="MsoNormal">Hi Mark,<span></span></p>

<p class="MsoNormal">Congratulations for 100% on Challenge 2 (Bonus helped!)<span></span></p>

<p class="MsoNormal">I\u2019ve used your times for (t<sub>1</sub>, t<sub>2</sub>) to compute
total distance covered. <span></span></p>

<p class="MsoNormal">P = 2p<sub>1 </sub> +  p<sub>2</sub> <span></span></p>

<p class="MsoNormal">   = at<sub>1</sub><sup>2</sup>
+ vt<sub>2  </sub>, using your values
gives <span></span></p>

<p class="MsoNormal">   = 10(1.17)<sup>2</sup>
+ 35(6.66)<span></span></p>

<p class="MsoNormal">   = 246.789, past
desired position (p =240)<span></span></p>

<p class="MsoNormal">Check your solution to the quadratic equation. <span></span></p>

<span style="font-size:11pt;line-height:107%;font-family:Calibri,sans-serif">Jim</span><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 14, 2020 at 9:29 PM Mark G. &lt;<a href="mailto:vpm@palaceofretention.ca">vpm@palaceofretention.ca</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jim,<br>
<br>
Thanks for the corrections.  Here are my updated results<br>
with some trial solutions for outputs 9 and 10.<br>
I differ in output 10.<br>
<br>
$ echo  33009 9002 11 | ../bin/cnc<br>
Input:<br>
RegP: 33009      bits: 1000000011110001<br>
RegM: 9002       bits: 0010001100101010<br>
RegS: 11         bits: 00001011<br>
Output #1: 241   (position)      bits: 11110001<br>
Output #2: 35    (velocity)      bits: 00100011<br>
Output #3: 2     (accel.)        bits: 00000010<br>
Output #4: 10    (time)          bits: 00001010<br>
<br>
Error status:<br>
Position error.<br>
Velocity ok.<br>
Acceleration error.<br>
Time error.<br>
<br>
Error corrected:<br>
Output #5: 240   (position)      bits: 11110000<br>
Output #6: 35    (velocity)      bits: 00100011<br>
Output #7: 10    (accel.)        bits: 00001010<br>
Output #8: 9     (time)          bits: 00001001<br>
<br>
Error status:<br>
Position ok.<br>
Velocity ok.<br>
Acceleration ok.<br>
Time ok.<br>
<br>
Output #9:<br>
  Travel time t: 6.93 (s)<br>
  final velocity v: 69.28 (cm/sec)<br>
<br>
Output #10:<br>
  Testung t1 solution 1: 12.83 (s)<br>
  Invalid t2 with t1 solution 1: -16.66<br>
  trying t1 solution 2: 1.17 (s)<br>
  Valid t2 with t1 solution 2: 6.66 (s)<br>
<br>
  Solution t1: 1.17 (s)<br>
  Solution t2: 6.66 (s)<br>
<br>
Output #11:<br>
Solutions involving a negative amount for t2 are not<br>
physically possible without time travel.<br>
<br>
<br>
<br>
On 2020-11-12 8:00 p.m., James Briante wrote:<br>
&gt; <br>
&gt; <br>
&gt; Mark -a big thanks for pointing out the errors! v &amp; t in the <br>
&gt; Callenge2.pdf are typing errors. I should have included the actual <br>
&gt; output screen (see attachment) with the other files. I&#39;ve blacked out  <br>
&gt; the answer to Output #11.<br>
&gt; <br>
&gt; Things have been quiet on project talk re: challenge 2. Could these <br>
&gt; errors be the reason?<br>
&gt; <br>
&gt; I don&#39;t have a read on what I should do for output #10. Should I provide <br>
&gt; the solution to the quadratic equation?<br>
&gt; <br>
&gt; Jim<br>
&gt; <br>
&gt; <br>
&gt; On Wed, Nov 11, 2020 at 5:09 PM Mark G. &lt;<a href="mailto:vpm@palaceofretention.ca" target="_blank">vpm@palaceofretention.ca</a> <br>
&gt; &lt;mailto:<a href="mailto:vpm@palaceofretention.ca" target="_blank">vpm@palaceofretention.ca</a>&gt;&gt; wrote:<br>
&gt; <br>
&gt;     Hi Jim,<br>
&gt; <br>
&gt;     I&#39;ve completed up-to output #8 of the challenge and have<br>
&gt;     some discrepancies with your challenge specification.<br>
&gt;     Specifically, velocity/acceleration error switch, differing<br>
&gt;     values for uncorrected time (t) and velocity (v).<br>
&gt; <br>
&gt;     Your values:<br>
&gt;     Input Data: 33009,9002,11 (initial values - RegP, RegM, RegS)<br>
&gt;     Output #1: 241 (value of p, transferred from RegP)<br>
&gt;     Output #2: 186 (value of v, transferred from RegM)<br>
&gt;     Output #3: 10 (value of a, transferred from RegM)<br>
&gt;     Output #4: 220 (value of t, transferred RegM)<br>
&gt;     --------------------------------------------------------------------------------<br>
&gt; <br>
&gt;     Output # 5 to #8 \u2013 values of p, v, a, and t with corrections<br>
&gt;     --------------------------------------------------------------------------------<br>
&gt; <br>
&gt;     Output #5: 240 (p)<br>
&gt;     Output #6: 35 (v)<br>
&gt;     Output #7: 10 (a)<br>
&gt;     Output #8: 9 (t)<br>
&gt; <br>
&gt;     My values:<br>
&gt; <br>
&gt;     $ echo  33009 9002 11 | ../bin/cnc<br>
&gt;     Input:<br>
&gt;     RegP: 33009      bits: 1000000011110001<br>
&gt;     RegM: 9002       bits: 0010001100101010<br>
&gt;     RegS: 11         bits: 00001011<br>
&gt;     Output #1: 241   (position)      bits: 11110001<br>
&gt;     Output #2: 35    (velocity)      bits: 00100011<br>
&gt;     Output #3: 2     (accel.)        bits: 00000010<br>
&gt;     Output #4: 10    (time)          bits: 00001010<br>
&gt;     Position error.<br>
&gt;     Velocity ok.<br>
&gt;     Acceleration error.<br>
&gt;     Time error.<br>
&gt;     Error corrected:<br>
&gt;     Output #5: 240   (position)      bits: 11110000<br>
&gt;     Output #6: 35    (velocity)      bits: 00100011<br>
&gt;     Output #7: 10    (accel.)        bits: 00001010<br>
&gt;     Output #8: 9     (time)          bits: 00001001<br>
&gt;     Position ok.<br>
&gt;     Velocity ok.<br>
&gt;     Acceleration ok.<br>
&gt;     Time ok.<br>
&gt; <br>
&gt;     What do you think?<br>
&gt; <br>
&gt;     Mark<br>
&gt; <br>
&gt;     -- <br>
&gt;     Projects mailing list<br>
&gt;     <a href="mailto:Projects@vicpimakers.ca" target="_blank">Projects@vicpimakers.ca</a> &lt;mailto:<a href="mailto:Projects@vicpimakers.ca" target="_blank">Projects@vicpimakers.ca</a>&gt;<br>
&gt;     <a href="http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca" rel="noreferrer" target="_blank">http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca</a><br>
&gt; <br>
&gt; <br>
<br>
-- <br>
Projects mailing list<br>
<a href="mailto:Projects@vicpimakers.ca" target="_blank">Projects@vicpimakers.ca</a><br>
<a href="http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca" rel="noreferrer" target="_blank">http://vicpimakers.ca/mailman/listinfo/projects_vicpimakers.ca</a><br>
</blockquote></div>