V
V
Vitaly2019-08-29 14:09:55
JavaScript
Vitaly, 2019-08-29 14:09:55

How to find the sides of a rectangle inscribed in an ellipse?

I can’t find a formula for how to find the width and height of a rectangle inscribed in an ellipse, knowing the vertical and horizontal radii of the ellipse and the aspect ratio of the rectangle.
Example:
horizontal radius = 10
vertical radius = 5
width = 2 height
you need to find the height and width values ​​if the rectangle is inscribed in an ellipse
If there is a ready-made npm library with these formulas or an example in JS, please tell me.
I ask mathematicians to suggest the formulas themselves, google offers me only circles with one radius.
Thanks to all!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Developer, 2019-08-29
@samodum

An infinite number of rectangles can be inscribed in an ellipse.
The question does not make sense, or there are not enough additional conditions

R
Rsa97, 2019-08-29
@Rsa97

Ellipse formula:
x 2 / a 2 + y 2 / b 2 \u003d 1
where a is the major semi-axis, b is the minor semi-axis of the ellipse. From the rectangle condition
x = 2y
4y 2 / a 2 + y 2 / b 2 = 1 _ _ x = 7.0710678 So the rectangle will have a width of 14.1421356 and a height of 7.0710678

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question