1
$\begingroup$

It's a 3D linear equation {P1: 2x-y-3z+2=0,P1: x+2y-z-6=0}

Are there any methods that can convert this linear equation to its parametric form.

Ps:the parametric form is {x=7t, y=-t+14/5, z=5t}

$\endgroup$
1
  • $\begingroup$ it's really helpful~ $\endgroup$
    – lkck1901
    Commented Aug 31, 2020 at 3:55

1 Answer 1

2
$\begingroup$

You can use Solve to eliminate variables

eqs = {2 x - y - 3 z + 2 == 0, x + 2 y - z - 6 == 0}
{x, y, z} /. Solve[eqs, {x, y}][[1]] /. {z -> t}

Out[1]= {2 + 2 x - y - 3 z == 0, -6 + x + 2 y - z == 0} 
Out[2]= {1/5 (2 + 7 t), (14 - t)/5, t}
$\endgroup$
3
  • 1
    $\begingroup$ Simpler Reduce[{2 + 2 x - y - 3 z == 0, -6 + x + 2 y - z == 0}, {x, y, z}]/.x->t. $\endgroup$
    – user64494
    Commented Aug 27, 2020 at 8:35
  • $\begingroup$ @user64494 Right, it is even simpler. $\endgroup$
    – yarchik
    Commented Aug 27, 2020 at 8:43
  • $\begingroup$ Thanks a lot ~ it's really helpful $\endgroup$
    – lkck1901
    Commented Aug 31, 2020 at 3:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.