Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

plotting points

How can I show points that I get as the result in line 11? I have that two circles, but I do not know how to get points on the graph.

var('x, y') ft = (x+1)^2-(y)^2-1 f=circle((-1,0), 1) p = plot(f,-5,5, thickness=2) @interact def _(r=(1..4)): g = circle((1,0), r) pt = plot(g,-5, 5, color='green', thickness=2) gt= (x-1)^2+ y^2-r pot = solve([ft,gt], x, y) html('$tocke=\;%s$'%latex(pot)) show( dot + p + pt, ymin = -5, ymax = 4)

plotting points

How can I show points that I get as the result in line 11? I have that two circles, but I do not know how to get points on the graph.

var('x, y') y')

ft = (x+1)^2-(y)^2-1 (x+1)^2-(y)^2-1

f=circle((-1,0), 1) 1)

p = plot(f,-5,5, thickness=2) @interact thickness=2)

@interact

def _(r=(1..4)): _(r=(1..4)):

g = circle((1,0), r) r)

pt = plot(g,-5, 5, color='green', thickness=2) thickness=2)

gt= (x-1)^2+ y^2-r y^2-r

pot = solve([ft,gt], x, y) html('$tocke=\;%s$'%latex(pot)) y)

html('$tocke=\;%s$'%latex(pot))

show( dot + p + pt, ymin = -5, ymax = 4)

plotting points

How can I show points that I get as the result in line 11? I have that two circles, but I do not know how to get points on the graph.

var('x, y')

ft = (x+1)^2-(y)^2-1

f=circle((-1,0), 1)

p = plot(f,-5,5, thickness=2)

@interact

def _(r=(1..4)):

g = circle((1,0), r)

pt = plot(g,-5, 5, color='green', thickness=2)

gt= (x-1)^2+ y^2-r

pot = solve([ft,gt], x, y)

html('$tocke=\;%s$'%latex(pot))

show( dot + p + pt, ymin = -5, ymax = 4)

plotting points

How can I show points that I get as the result in line 11? I have that two circles, but I do not know how to get points on the graph.

var('x, y')

y') ft = (x+1)^2-(y)^2-1

(x+1)^2-(y)^2-1 f=circle((-1,0), 1)

1) p = plot(f,-5,5, thickness=2)

thickness=2)

@interact

@interact def _(r=(1..4)):

_(r=(1..4)): g = circle((1,0), r)

r) pt = plot(g,-5, 5, color='green', thickness=2)

thickness=2) gt= (x-1)^2+ y^2-r

y^2-r pot = solve([ft,gt], x, y)

html('$tocke=\;%s$'%latex(pot))

y) html('$tocke=\;%s$'%latex(pot)) show( p + pt, ymin = -5, ymax = 4)

4)