You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
206 B
5 lines
206 B
function [ret] = eccentricity(a, b, c, d, e, f)
|
|
matrix = [a, b/2, d/2; b/2, c, e/2; d/2, e/2,f];
|
|
eta = - sign(det(matrix));
|
|
ret = sqrt((2*sqrt((a-c)^2+b^2)) / (eta*(a+c)+sqrt((a-c)^2+b^2)));
|
|
end
|