Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how i use subs in function solve

hello everybody I try to implement the function subs in the solve function to introduce the value of the constants a1 b1 c1 a2 b2 c2 a3 b3 c3 example: a1=xd;b=yd;c1=zd;a2=xe;b2=ye;c2=ze;a3=xf;b3=yf;c3=zf; syms x y z a1 b1 c1 a2 b2 c2 a3 b3 c3;

[x y z]=solve('(x-a1)^2+(y-b1)^2+(z-c1)^2=1','(x-a2)^2+(y-b2)^2+(z-c2)^2=1','(x-a3)^2+(y-b3)^2+(z-c3)^2=1')

thank you

click to hide/show revision 2
No.2 Revision

how i use subs in function solve

hello everybody I try to implement the function subs in the solve function to introduce the value of the constants a1 b1 c1 a2 b2 c2 a3 b3 c3 example: c3

example:

a1=xd;b=yd;c1=zd;a2=xe;b2=ye;c2=ze;a3=xf;b3=yf;c3=zf;
syms x y z a1 b1 c1 a2 b2 c2 a3 b3 c3;

c3;

[x y z]=solve('(x-a1)^2+(y-b1)^2+(z-c1)^2=1','(x-a2)^2+(y-b2)^2+(z-c2)^2=1','(x-a3)^2+(y-b3)^2+(z-c3)^2=1')

z]=solve('(x-a1)^2+(y-b1)^2+(z-c1)^2=1','(x-a2)^2+(y-b2)^2+(z-c2)^2=1','(x-a3)^2+(y-b3)^2+(z-c3)^2=1')

thank you