how i use subs in function solve

asked 2012-03-26 23:20:03 -0500

anonymous user


updated 2012-03-27 03:08:02 -0500

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


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



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 03:08:34 -0500 )edit

Looks a lot like MATLAB to me.

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