For more advanced functions, there are many third-party codes or assemblies:
C# math library, foreign gadgets, super math library, I hope it is useful! ! /source/338860