how i use subs in function solve

asked 13 years ago

anonymous user

Anonymous

updated 13 years ago

kcrisman gravatar image

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

Preview: (hide)

Comments

1

Is this Sage or Python code? It doesn't really look like it. Can you be a little more explicit about precisely what you would like to do, or maybe with a simpler example?

kcrisman gravatar imagekcrisman ( 13 years ago )
1

Looks a lot like MATLAB to me.

DSM gravatar imageDSM ( 13 years ago )