There is also an algorithm for the indirect method here which might help:

https://phasetoday.com/indirect-meth...tific-journal/