Thank you John On Wednesday, 6 February 2013 15:29:45 UTC+10:30, John H Palmieri wrote: > > > > On Tuesday, February 5, 2013 8:24:31 PM UTC-8, Asad Akhlaq wrote: >> >> Hi, >> >> If anyone can help me to find the line of intersection of two planes. I >> can plot two planes in sage as follows: >> >> plane1 = plot3d((6 - 3*x - 2*y)/6, (x, -5, 5), (y, -6, 6)) >> plane2 = plot3d((2 + 2*x + 9*y)/11, (x, -5, 5), (y, -6, 6)) >> >> plane1 + plane2 shows me the 3D graph. I can see the line of >> intersection of these planes. How can I get the actual values (points) of >> this line? Actually my main target is to find the point of intersection of >> two or more hyperplanes in higher dimensions (dimensions 6, 7 ,8). If >> anyone can just give me some hints in this regards? >> > > I think this should do it: > > sage: var('x y z') > sage: eqn1 = (z == (6 - 3*x - 2*y)/6) > sage: eqn2 = (z == (2 + 2*x + 9*y)/11) > sage: solve([eqn1, eqn2], x, y) > [[x == -76/23*z + 58/23, y == 45/23*z - 18/23]] > > -- > John > >
-- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.