Let p be an even-degree polynomial such that has a unique vertex (single global extremum). Consider its translation by shifting its vertex to the origin.
Find
- d (d>0) the shifting distance of the above translation;
- v the vertical shift, which stands for 'up' and 'down' if the polynomial's graph is upward or downward shifted, respectively, or simply '' if the graph does not undergo a translation;
- h the horizontal shift, which stands for 'right' and 'left' if the polynomial's graph is shifted to the right and to the left, respectively, or simply '' if the graph does not undergo a translation.
input: p
output: [d, v, h]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
More from this Author18
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!