I do not change any values, I only re-evaluate the equations a second time and the Plot corrects itself to the right values… this happens every time I change the value of P
No, yx remains exactly the same, I might have clipped the P when I copied the image, but both formulas remain the same, nothing was changed. I only pressed “Shift – Enter” a second time…But if you wish, look at the formula for “v” it is the same, yet the dimension on the y axis changed from -500 to -5…
Because yx=expr means “evaluate expr and set the value of y to it”. If expr contains evaluatable subexpressions, they will be evaluated. Here, you’re setting Pafter evaluating the expression that contains it. If P already had a value when you evaluated it in setting yx, changing its value will have no effect on yx.
For parameters like this, I like to use rules to define parameter sets. Leave P, EI, and L as undefined symbols, and define a parameter set as:
ps1= {EI->6, L->1000, P->100};
Then, at the point where you’re ready to make the substitution of parameters for symbols, write expressions like yx/.ps1.