Which library is available in .NET to solve equations like this efficiently?
The result should be
I need this kind of intermediate equation to calculate the minimal distance of a line g and a point P. Maybe there are some other libraries how have this functionality already included.