taupf.m 339 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11
function taup = taupf(tau, e2)
%TAUPF   tan(chi)
%
%   TAUPF(tau, e2) returns tangent of chi in terms of tau the tangent of
%   phi.  e2, the square of the eccentricity, is a scalar; taup can be any
%   shape.

  tau1 = hypot(1, tau);
  sig = sinh( eatanhe( tau ./ tau1, e2 ) );
  taup = hypot(1, sig) .* tau - sig .* tau1;
end