In reply to saketa:
The DPI does not provide any mathematical function. DPI stands for ‘Direct Programming Interface’.
It helps you that you can call C/C++ subroutines in your SV code. You have to integraate the corresponding C-libraries containing these functions into your SV-code.