Oh, so THAT's where he got it from.

But he still can't just assume that the slope is 1. Let's take a concrete example and run a sanity check to demonstrate that.

peak (1/2, 1/2), height 5, slope 2 point 1: bottom left 5 - 2*sqrt((3/2)**2 + (3/2)**2) = 0.757359312880715 point 2: bottom right 5 - 2*sqrt((1/2)**2 + (3/2)**2) = 1.83772233983162 point 3: top right 5 - 2*sqrt((1/2)**2 + (1/2)**2) = 3.58578643762691 point 4: top left 5 - 2*sqrt((3/2)**2 + (1/2)**2) = 1.83772233983162 a = 1.83772233983162 - 3.58578643762691 = -1.74806409779529 b = 0.757359312880715 - 3.58578643762691 = -2.8284271247462 c = 1.83772233983162 - 3.58578643762691 = -1.74806409779529 x = a(c-b)(a-c-b)/(4(a+c-b)) = -1.74806409779529 * (-1.74806409779529 - -2.8284271247462) * (-1.74806409779529 + -1.74806409779529 - -2.8284271247462) /( 4 * (-1.74806409779529 + -1.74806409779529 - -2.8284271247462) ) = -0.472135954999583
and I'm not going to bother working out what he thinks that y should be since his value for x is already obviously wrong.

In reply to Re^4: OT:Math problem: Grids and conical sections. by tilly
in thread OT:Math problem: Grids and conical sections. by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.