You are on page 1of 1

SageMath-Cassinian-Ovals

var('a','c','x','y')
show("Cartesian equation: ",LatexExpr("(x^2+y^2)^2-2a^2(x^2-y^2)+a^4-c^4=0"))
@interact
def __(a = slider (1, 20, default = 10, step_size = 1), c = slider (1, 20, default = 10, step_size =
1), max = slider (1, 100, default = 20, step_size = 1)):
show(implicit_plot ((x^2+y^2)^2-2*a^2*(x^2-y^2)+a^4-c^4==0, (x, -max, max), (y, -max/2, max/2),
axes = True, figsize=8))
2 2 2 2 2 2 4 4
Cartesian equation:(x + y ) − 2a (x − y ) + a − c = 0

a 10
c 10
max 20

You might also like