Compute the log-density of a multivariate normal distribution N(μ,Σ) at one point x. The covariance matrix is symmetric positive definite.
Implement solve(x,mu,cov).
Returns. Return the log-density as a Python float.
Example 1
Input:
solve([1.0, 2.0], [0.0, 0.0], [[1.0, 0.0], [0.0, 1.0]])
Output:
-4.337877
Example 2
Input:
solve([0.0], [0.0], [[4.0]])
Output:
-1.612086
No results yet
Run your code to check it against the examples, or submit to run every test.