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

SageMath-Serpentine

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

a 10
b 5
max 25

You might also like