Given/find works fine outside but does not work within a loop
- July 3, 2019
- 2 replies
- 3960 views
Hello everyone,
Would really appreciate your help in an issue that I'm facing (in Mathcad 15)
I'm trying to fit two curves (parabolas) between two points (could be more later) and certain conditions (slope = 0 at so-so point).
The given/find equation seems to work fine, but I am not able to loop through it.
The mathcad file is attached. Please allow me to quickly explain what I intend to do
1) I'm defining two parabola as y(x) = Ax^2 + Bx + C and y(x) = Dx^2 + Ex + F
2) Parabola 1 passes through point (x0,y0), with slope = 0
3) Parabola 2 passes through point (x1,y1) with slope = 0
4) They must meet at some point in between (XM,ZM) with the same slopes
Lastly I find the unknown variables (A,B,C,XM,ZM,D,E,F) and store them in a 8x1 matrix.
But if I need to loop through n points, then I would like to use the same given/find in a loop and store all the calculated uknowns (A,B,C,XM,ZM,D,E,F) in an 8xn matrix. Here I get the error "this variable is undefined" and I have absolutely no idea where I am going wrong.
Many thanks in advance,
Warm Regards,
Aravind.

