I wanted to define findmaximum in the attached file and wonder how to do it.. if you see the plot that i made in the mathematica fille , I have a Cp range for delta on the x-axis.. just wondering if there Is there any code to highlight the maximum Cp value inorder to find the correspoding delta ?
from the generated table, I can manually figure out that
at D = 0.3 (the lowest blue line),
the delta is 0.12 and the Cpo = 754.693
but just wondering if there is any code to highlight the maximum Cp values and the delta where it is in maximum?
It looks like there’s variable definitions missing here.
Debugging code is a skill and not an easy one to learn. In the code you attached above you are generating a huge list of Interpolations. Then you are trying to find the maximum value for each of them individually.
If you are having trouble, then do this: Create only one of the interpolating functions. Then find its maximum value. The plot it and it’s maximum value.
When you get stuck, step back, find a simpler version of the problem and then work on it.