Solved! Go to Solution.
Is this what you're after?
Success!
Luc
Hi Luc,
Thanks for that. Yes, in a way I think that gets me to where I want to be.
Now I am back at work, see attached image of the sort of thing I am looking at. What I am after is integrating the area under my blue line and to the left of both the red and black lines. I have experimente with a few ways of doing this and as you say can do this by taking areas away from eachother. Obviously for now I am working with simple shapes but this could get quite messy when I apply the logic to my final objective which is much more complex.
Cheers,
A
Try this:
Hi Fred,
Thanks for that. Yes it is not normal I agree. However, in the arena of ship calculations it is standard to integrate along the y axis for a number of reasons. In the below very simplified graph, the blue line represents the waterline, the black line the outline of half the ship and in this case the red line is a damage bulkhead which has been lost i.e. I want to find the new area of the underwater (intact) volume.
In simple terms, what does the min function do?
Andy
"min" does just what it sounds like--accepts the minimum value
Maybe a better way to do this?
Fred,
Thanks for that, that is magic!
That will save me allot of headaches in the future.
Andy
Fred,
Thinking further ahead, how would you approach integrating where the upper limit is a function? In the attached, the integral only goes up to 1.5 i.e. the original waterline not the heeled line. I tried simply putting WL as the upper limit but got various error messages.
If you have a second function (WL) setting the other boundary you need a double integral.
Note that the limits of the outer integration ("sea") are going to be a challenge.