Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

SageMath-Limacon-of-Pascal

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

a 5
b 4
max 10

/
/

You might also like