Final Exam
Name: Edgar Arevalo
Score:
Rules for writing in this notebook
Insert your name in the first cell of this notebook
Answer every part of the mini project in a different cell.
To insert a cell use the menu item Insert
State the input(s) and output(s) before each of your functions
Give your functions suggestive names
Restrict the size of figures that you create
J## Mini project 4: Area of a tilted ellipse
Problem formulation
Consider the equation of a conic with Recall that the condition means that the conic is an ellipse.
(manual) Use completing the square technique to rewrite the given equation in the form where are expressions depending on the parameters of the given ellipse.
let k=B/A, a=D/A, and b=D/(A*C-B^2/A)
Show that if the shear transformation defined by the matrix is applied to the points of the standard ellipse the reslting curve has the equation that you derived in part 1. Use this fact to derive the formula for the area of the given ellipse in terms of parameters
Write a function that takes parameters , checks the condition and, if the condition is true, returns the area of the given ellipse. If the condition is false, your function returns the string "The conic is not ellipse."
Test your function on example of your choice. Plot the given ellipse and the corresponding standard ellipse in one figure.
File "<ipython-input-10-026dfbce6afb>", line 1
var"x y"
^
SyntaxError: invalid syntax
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-7-3953782f1ed5> in <module>()
----> 1 G.show()
NameError: name 'G' is not defined