Closed quanhinh9 closed 2 years ago
It looks like your line does not intersect your parabola.
I don't know the geometry package very well, but you first want to draw a line segment, not an infinite line(A,B)
. An indeed, when you do this, you see that KevinArlin is correct: the black curves do not intersect:
import geometry;
import graph;
unitsize (1cm);
point A = (-4, 3), B =(4, 2), C=(-4, -2), D = (2, 2), F = (0, 3);
line L=line(A,false,B,false);
parabola pa = parabola(F, L); draw(pa);
draw(L);
line l = line (C, D); draw(l, Cyan);
point [] pv = intersectionpoints(pa, parallel(pa.V, l));
Hi,
I use intersectionpoints function of parabola and line but get error.
My code in http://asymptote.ualberta.ca:
point pv[1] does not exist?