Matlab® provides very useful tools to calculate different mathematical operations. One of them is for the calculation of the polygamma functions. ‘Polygamma functions’ is a very important aspect of advanced mathematics. You can find detailed information about the polygamma functions from this link.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
Polygamma functions are calculated with the ‘psi()’ command in Matlab®. Here we explained how to calculate polygamma functions in Matlab® with the ‘psi()’ command. You can try this command in your Matlab® software.
How To Use The ‘psi()’ Command In MatLab®?
>> psi(4, 5) ans = -0.0141 >>
As you see in the programming example above, you need to enter two inputs inside the ‘psi()’ command in Matlab® to calculate the polygamma function. The only requirement is that the first term must be bigger than 4.
The general expression of the polygamma function is like the above. The first term that you entering inside the brackets is the ‘m’ above. And the second term is the ‘z’. Polygamma function is calculated with these values in Matlab®.
As you understand that the calculation of the polygamma functions in Matlab® is very simple with the ‘psi()’ command.
Do not forget to leave your comments and questions below about the use of the ‘psi()’ command in Matlab® below.
If you want further coding examples about the ‘psi()’ command in Matlab®, inform us in the comments.
This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®