how i use subs in function solve

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

anonymous user


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

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 10:08:34 +0100 )edit

Looks a lot like MATLAB to me.

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