Hello,
I have a system of equations that I solve with respect to three variables : pd, pf and lambda. I solve it for two different values of a parameter (eqns1 and eqns2) and over a variety of values for cd.
I now want to store the results as a matrix with three rows : cd, lambda from eqns1 and lambda from eqns2 in order to be able to represent graphically the two rows of lambda with respect to cd.
Any suggestions on how to store the results as a unique matrix?
Thank you for your answer. You don’t find any solutions because it should be eqns1=… and eqns2=… without capital letters. Sorry, my message got auto corrected, I just edited my post.
I have tried your way and I have two errors when solving: ReplaceAll::reps and General::stop. Any idea why?
Ah! I am very sorry about that! I corrected the code.
Now your code is running and I find the solution but I don’t see where the matrice is stored? Mathematica apparently only remembers the last value of lambda and cd…
Please, for cd==0 manually show the matrice you want. Repeat that for cd==1/10. Maybe from that I can understand what it is you want in what form and where you want it stored. Thank you
Or you might think of using Table instead of For. Table can store the result of your calculations with each iteration and give you all those when it is finished.