Code covered by the BSD License  

Highlights from
Curvilinear Coordinates

from Curvilinear Coordinates by Howard Wilson
Programs are presented which use symbolic math, curvilinear coordinates, and tensor concepts.

[X,names]=oblate
function [X,names]=oblate
% [X,names]=oblate defines oblate spheroidal coordinates
syms e t p real; names=[e,t,p];
X=[cosh(e)*sin(t)*cos(p);
   cosh(e)*sin(t)*sin(p);
   sinh(e)*cos(t)];

Contact us at files@mathworks.com