<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265269</link>
    <title>MATLAB Central Newsreader - Intersection between line and half-circle</title>
    <description>Feed for thread: Intersection between line and half-circle</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sun, 08 Nov 2009 05:37:01 -0500</pubDate>
      <title>Intersection between line and half-circle</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265269#692960</link>
      <author>Catherine Szeto</author>
      <description>How do I find the intersections between a line and a circle? If I do it by hand, I end up with:&lt;br&gt;
&lt;br&gt;
y = mx +b (line equation)&lt;br&gt;
(x-h)^2 + (y- k)^2 = r^2   (circle equation)&lt;br&gt;
&lt;br&gt;
do some algebra...&lt;br&gt;
&lt;br&gt;
(x-h)^2 + (mx + b - k )^2 = r^2&lt;br&gt;
&lt;br&gt;
(x-h)^2 = r^2 - (mx +b -k)^2&lt;br&gt;
&lt;br&gt;
How do I make Matlab get x for me?</description>
    </item>
    <item>
      <pubDate>Sun, 08 Nov 2009 08:34:42 -0500</pubDate>
      <title>Re: Intersection between line and half-circle</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265269#692967</link>
      <author>Rune Allnor</author>
      <description>On 8 Nov, 06:37, &quot;Catherine Szeto&quot; &amp;lt;catsz...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; How do I find the intersections between a line and a circle? If I do it by hand, I end up with:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; y = mx +b (line equation)&lt;br&gt;
&amp;gt; (x-h)^2 + (y- k)^2 = r^2 &#160; (circle equation)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; do some algebra...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (x-h)^2 + (mx + b - k )^2 = r^2&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (x-h)^2 = r^2 - (mx +b -k)^2&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; How do I make Matlab get x for me?&lt;br&gt;
&lt;br&gt;
1) Write out the expression as a 2nd order polynomial in x&lt;br&gt;
2) Write out the standard formula for solving 2nd order&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;polynomials&lt;br&gt;
3) Find the numbers that go into the formulas&lt;br&gt;
4) Have matlab compute the answers from the formulas and&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;numbers&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Mon, 09 Nov 2009 02:58:01 -0500</pubDate>
      <title>Re: Intersection between line and half-circle</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/265269#693124</link>
      <author>Cat </author>
      <description>Rune Allnor &amp;lt;allnor@tele.ntnu.no&amp;gt; wrote in message &amp;lt;0727aeb3-86d2-42f3-b629-4fb12f55a557@d5g2000yqm.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On 8 Nov, 06:37, &quot;Catherine Szeto&quot; &amp;lt;catsz...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; How do I find the intersections between a line and a circle? If I do it by hand, I end up with:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; y = mx +b (line equation)&lt;br&gt;
&amp;gt; &amp;gt; (x-h)^2 + (y- k)^2 = r^2 ? (circle equation)&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; do some algebra...&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; (x-h)^2 + (mx + b - k )^2 = r^2&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; (x-h)^2 = r^2 - (mx +b -k)^2&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; How do I make Matlab get x for me?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1) Write out the expression as a 2nd order polynomial in x&lt;br&gt;
&amp;gt; 2) Write out the standard formula for solving 2nd order&lt;br&gt;
&amp;gt;    polynomials&lt;br&gt;
&amp;gt; 3) Find the numbers that go into the formulas&lt;br&gt;
&amp;gt; 4) Have matlab compute the answers from the formulas and&lt;br&gt;
&amp;gt;    numbers&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Rune&lt;br&gt;
&lt;br&gt;
Thanks, I got it working. Turns out I was using a function wrong.</description>
    </item>
  </channel>
</rss>

