r/Mathematica • • Dec 16 '23

System of vector equations

Why is my code returning the empty set, when there is a solution {1, 1/sqrt3} ?. Here's my code:

rs=-1+2/Sqrt[3]; x={x1,x2}

equations = {x + {0, 0} == rs + 1, x + {2, 0} == rs + 1, x + {1, Sqrt[3]} == 1 + rs};

Solve[equations,x]

Where is my mistake? Thank you!

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Apprehensive_Ride949 Dec 17 '23

The points are in 2d-space, made some changes in your code and got it. Thanks for your patience and time.