Question: Complete the Python code that calculates the X and Y coordinates of the points on an oval. The code is given the semi-major and semi-minor

Complete the Python code that calculates the X and Y coordinates of the points on an oval. The code is given the semi-major and semi-minor diameters of the oval ( a, and b ), and the number of intervals between equally spaced X coordinates. Create a list of equally spaced X coordinates from x=0 to x=2 a based on the number of intervals. Using the equally spaced X coordinates and equation 1 create a list of Y coordinates, one Y coordinate for each X coordinate. Print a table that contains the X coordinates in one column and the corresponding Y coordinates in the other column. Hint: The equation below should be used to answer this question. In order to find Y coordinates, you need to initialize X coordinates, a, and b and find corresponding values of Y coordinates. a2x2+b2y2=1 where a and b are the semi-major and semi-minor of the oval and x and y are the coordinates of the points on the oval. Note: You can write the import statement(s) required by this function here and complete the function. However, answering this question in the format of a function is not mandatory. def computeCoords(radius, intervals)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
