![]() Some of the possibilities led to a consistent series of equations whose solutions depended upon the magnitude of the noise (which I called "delta" when I was solving), but in every one of those cases, the consistent solutions involved expressions divided by delta, so the solutions "exploded" as the assumed noise was reduced, contradicting the assumption that there was just a little noise in the system. Most of the possibilities just stayed inherently inconsistent. For this reason I recommend that you use this. If you solve the equation this way you then have the option of selecting which of the four roots you want placed in M2 array. It turns out that with those equations, in every case except perhaps one, the amount that the term would have to be wrong was fairly large compared to what the term actually is, such as -0.05*x^2 needing to be about +0.28*x^2 or -6994.94 needing to be about -15000 for there to be a solution. You can see this from the fact that the equation can easily be converted to a quadratic equation in M22 which would have two roots for M22 and therefore four roots for M2. ![]() ![]() displayFormula (symstr) 1 + e 2 i + e 2 i 2 + cos ( e 2 i) To evaluate the strings S and symstr as symbolic expressions, use str2sym. I did that for each possibility in term, finding out how wrong the stated term would have to be in order for there to be a solution to the equations. symstr '1 + S + S2 + cos (S)' Display symstr as a formula without evaluating the operations by using displayFormula. The equation has 2 real solutions (roots): x -1 and x -2. These are the four general methods by which we can solve a quadratic equation. As per my understanding you want to solve the given equation using MATLAB. Example: x2 + 3x + 2 0, where a 1, b 3, and c 2. Answer: There are various methods by which you can solve a quadratic equation such as: factorization, completing the square, quadratic formula, and graphing. There are some polynomials of degree 5 or higher that solve() is able to provide exact solutions for, but most of them it cannot handle. For example we could suggest that maybe 12.28 might result in inconsistency but maybe 12.28003582 might allow the equations to be consistent. Solving Quadratic Equations (Version 1) Quadratic equations have the form: ax2 + bx + c 0. For degree 5 or higher, solve() will typically return a data structure the 'stands in' for the roots. I would alter a term, and solved to find out what the "noise" would have to be in the term in order to make the equations consistent. I went through your equations, varying term by term under the assumption that the term had not been given exactly, such a supposing that 12.28 might be (1228/100 + delta) for some unknown delta, or that 0*x*rr might be (0+delta)*x*rr for some unknown delta.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |