Solved
Non-linear system of equations with variable number of equation
- August 28, 2016
- 5 replies
- 4926 views
Dear Mathcad Helper,
As shown in the attached sheet, I am trying to solve a non-linear system with 2N+5 equations. Among the 2N+5 equations, there are N+1 equations for one type of conditions, N+1 equation for another type of conditions and 3 individual separate equations.
The number of unknowns is 2N+5. The unknowns are grouped in one (N+1)-vector, one N-vector and another 3 separate unknowns.
Here are two questions:
- Is there a way to use correctly the range variable “i” in order to formulate in a compact manner the two types of conditions? I have difficulties with the range variable “i”.
- Is the regrouping of unknowns within multiple separate arrays (i.e. B and η) legal within a Find function? If not, what would be a nice solution?
Note: So far, the only one way I have been able to solve (partially) the non-linear equation system is to defined N as a single integer value, to explicitly write all 2N+5 equations one by one, and to use explicitly all 2N+5 unknowns.
Thank you for your interest and comments,
Gery

