how i use subs in function solve

asked 2012-03-27 06:20:03 +0200

anonymous user

Anonymous

updated 2012-03-27 10:08:02 +0200

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

edit retag flag offensive close merge delete

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 ( 2012-03-27 10:08:34 +0200 )edit
1

Looks a lot like MATLAB to me.

DSM gravatar imageDSM ( 2012-03-27 10:10:58 +0200 )edit