Let p and q be n-degree and m-degree polynomials with n >= m >= 1. Consider clockwise rotate the plane region bounded by these two polynomials until its axis of rotation will be parallel to the x-axis (see figure below). Here, the axis of rotation is the straight line, r, that passes through the two points of intersection, A and B, of the polynomials, p and q, such that are located at the lowest and highest x-values, respectively, and the center of rotation is located at the y-axis.
Find two 2×2 matrices, M = [A, B] and Mrotated, where
  • A and B are the 2×1 vectors corresponding to the endpoints;
  • Mrotated stands for the rotated endpoints A and B.
input: (p, q)
output: [M, Mrotated]
Rotate plane region

Solution Stats

1 Solutions

1 Solvers

Last Solution submitted on Feb 03, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers1

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!