Testwiki:Reference desk/Archives/Mathematics/2011 August 16

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < August 15 ! width="25%" align="center"|<< Jul | August | Sep >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


August 16

Extracting parameters from a matrix form ellipse

I found an algorithm for fitting the smallest possible ellipse through a set of points, but the solution is provided as the set of points 𝐩 for which (𝐩𝐜)T𝐀(𝐩𝐜)=1 where 𝐀 is a symmetric, positive definite matrix.

𝐜 is already useful as the center of the ellipse, but in order to plot it I need the whole thing in parametric form. This means I need to decompose 𝐀 into some parameters for the parametric form:

X(t)=Xc+acostcosφbsintsinφ
Y(t)=Yc+acostsinφ+bsintcosφ

Is there a simple formula for extracing a, b and φ from 𝐀?

Eonzo (talk) 10:08, 16 August 2011 (UTC)

If you write 𝐩𝐜=[xy] and 𝐀=[abbc], then (𝐩𝐜)T𝐀(𝐩𝐜)=ax2+2bxy+cy2=1. To finish up, see Rotation of axes#Elimination of the xy term by the rotation formula. 130.76.64.117 (talk) 00:45, 17 August 2011 (UTC)
Thank you for pointing me there, that's exactly what I needed :) Eonzo (talk) 07:51, 17 August 2011 (UTC)