Originally Posted by
MrShorty
I usually find that I must first understand the math before I can program Excel/VBA to perform the calculation, and I find myself having trouble understanding your formula and example.
1) As given, the formula has R on both sides of the equation. The R(t) actually represents the Reliability (R(t)<1.0)Is this indicative of a recursive type function? Yes, it is a summation from "N" to "M" (eg. M = 5; N = 3)If the R on the right hand side is the same R as the left hand side, the notation is a little different. How does the notation for R on the right hand side relate to the notation on the left hand side? If R(t) = 0.95, all the R(t) will be 0.95 throughout the equation
2) Other than "I am having trouble", can you explain in more detail what you are stuck on? My bad, the details are that I do not know what is the "Summation" function in Excel, and how to I set the limits of the summation. Also, is there a "!" factorial function in Excel?To this end, a copy of some of your failed attempts might be instructive. Are you having trouble with the internal For..Next loop? Yes, if "Summation" needs to be done in a loop. If this is supposed to be a recursive function, is it the recursion that is causing you trouble?
3) Do you have a more detailed worked example? For that existing example, "M" = 5, "N" = 3, "i" = 5 - 3 = 2, R(t) = 0.95, and the rest is arithmetic A lot of programming is being able to "translate" a sequence of operations into the desired programming language, which means that we need to understand, in sufficient detail, the steps being taken.
We may be better able to help you if you address these questions.
Bookmarks