How to solve simultaneous equation with identity

8 views (last 30 days)
I have a set of simultaneous equations which I can't figure out how to solve properly. I have to do it simultaneously, but also follow an identity as x^2 + y^2 + z^2 =1 to yield any solution other than 0 for each variable. I've tried to use symbolic functions but that I can't figure out. How can I set up a script for finding the answers to this type of system of equations?
[A1x + A2y + A3z;
B1x + B2y + B3z;
C1x + C2y + C3z;
x^2 + y^2 + z^2]
=
[0;
0;
0;
1]
I'm not good at formatting.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 22 Jan 2020
  1 Comment
Trygve Pollen
Trygve Pollen on 23 Jan 2020
It is a non-linear simultaneous equation that has to adhere to the identity. I've tried to use solve() by splitting the equations line by line using their symbolic variables. However I get the 'empty sym 0-by-1' output for the solution. I think the method is correct, but the solutions for x,y,z need to be approximated. Is there a way to make the solution an approximate if it turns out that 0.000001x + y =1 to yield y=1 for instance?

Sign in to comment.

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!