After playing with the similar triangle idea, it's a messy way to go. I assume you've got stuff like this floating around, but just for obviousness, I'll post something here to draw fire^Wcomments.

Assuming that the slope is uniform for each vertical cross-section:

| Zp (peak) |\ | \ | \ | a \ | \ |-----\ (Xa,Ya) | \ | b \ | \ |---------\ (Xb,Yb) | \ | \ | c \ | \ |--------------\ (Xc,Yc) | \ | \ | d \ | \ |-------------------\ (Xd,Yd) (Xp,Yp)
The height of each triangle is Hi = Zp-Zi. The base of each triangle is Bi = sqrt((Xp-Xi)**2 + (Yp-Yi)**2). The slope M of the hypotenuse is Mi = Hi/Bi, and since they're all the same, M = Hi/Bi, and:
Ha Hb Hc Hd -- = -- = -- = -- Ba Bb Bc Bd
Here's where I go wrong -- setting up the system of equations, and solving for Xp, Yp, and Zp. But since you need 3 equations for 3 unknowns, you may only need 3 points, not 4:
Ha Hb -- = -- Ba Bb Ha Hc -- = -- Ba Bc Hb Hc -- = -- Bb Bc
(But I'm fuzzy on the independence of those.)

But multiplying all of that out, and solving appropriately, is not something I'm good at. Now if I had a symbolic solver handy, it should pop out straight away (if I've done it right, which is debatable).

-QM
--
Quantum Mechanics: The dreams stuff is made of


In reply to Re: OT:Math problem: Grids and conical sections. by QM
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.