jinsuk Lee wrote:
if r=7m, I don't have a data(CL, CD)
I just have data in my excel file.
Yes, but you could use interploation here, too.
I am not sure if you need it, but her is a way how it could be done:
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
I also noticed that you redefined the function CL and CD inmidst of your sheet - confusing and bad behaviour.
I am not sure abou your calculation of ar and ar' via the solve blocks. In a prior post you wrote that you want to solve for both at once but this is not what you do now. Now you solve for a and hold a' constant to zero and then the other way round. i guess this is not what you inteded.
According the slowness of the sheet: Thats the integrations you are evaluating. The function th() takes a long time to calculate and is called many time by the itegral. Not sure but I don't think the if conditions are the cause for this. I can not be bothered to trace all of your function all the way back to their origin but this sure is something you should do yourself. Look how many calculation and which (interpolation, ...) Mathcad has to do to just calculate a single value of th().
Why not calcuate the integral by simple trapezoid approximation? After all you just have a bunch of points an not a continous function anyway.