Hi there.
I am trying to use Mathcad to find the probability of a sinking object hitting the seabed within several rings in 10m intervals.
It is quite a simple integration problem using a range of limits.
Basically I have a range for the upper and lower limits, r0 and ri, but they are highlighted as either 'not real', or 'need to be a scalar/vector' (Please see attached sheet)
I have tried putting the variable limits as either Matrices/Vectors as well as a range, but I cannot get it to work. On the attached sheet at the bottom are the individual workings, but I was hoping to generate a list of answers from one general formula.
I am a student and I am very new to Mathcad, I have searched the help section on Matchcad and on this website but I cannot find or think of an alternate way of solving the problem. I appreciate this may be simple and I may not be using Mathcad correctly, but any help, or direction would be much appreciated.
Thanks,
James
Solved! Go to Solution.
You can use a range variable to automatically run through all the calculations. See attached.
Alan
You can use a range variable to automatically run through all the calculations. See attached.
Alan
That's great Alan thanks a lot for your time. I see it was rudimentary so I apologise.
James
James Butterworth wrote:
That's great Alan thanks a lot for your time. I see it was rudimentary so I apologise.
James
No need to apologise. This forum is here to help.
Alan
PS You might want to download the file again - I replaced it with a slightly better version.
PPS Are you sure you want your integrals to go from -r to +r? Shouldn't they go from 0 to +r?
Alan,
Thanks again.
The Recommended Practice I am using states the integrals are from -r to +r yes.
If you google "RP F107", select the first link and go to page 20 of the PDF, this is what im referring to.
James
An alternative in this case (as there are no other arrays) is to use the vectorize operator - works in M11 and Prime 1.0.
Stuart
Thanks Stuart.
Funnily enough you answered a question I was about to ask! In a later part of this working I had to multiply the table of answers by another Vector. It was doing the dot product initially but the vectorize operator solved my problem.
Cheers,
James
James Butterworth wrote:
Thanks Stuart.
Funnily enough you answered a question I was about to ask! In a later part of this working I had to multiply the table of answers by another Vector. It was doing the dot product initially but the vectorize operator solved my problem.
Cheers,
James
Rats! I should have waited and got a Correct Answer instead of just a Helpful one!
Can you receive precognitive points?
Norm Schutzkus wrote:
Can you receive precognitive points?
I knew you were going to say that.