So I have a class diagram here:
A here's my sequence diagram
I'm invoking a method in object of Newton class and in this method I have to invoke a private method fact() which returns me a factorial of a given number. This is the body of that newton() method
float Newton::newton(int n, int k) {
return fact(n)/(fact(k) * fact(n-k));
}
As you can see fact() is invoked three times. So my question is: do I have to acknowledge (in my sequence diagram) that, fact() is used three times here, and if so - how? Or my sequence diagram is correct?