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]=cone
function [X,names]=cone
% [X,names]=cone defines a non-orthogonal
% coordinate system using a conical surface
% with a planar base
syms z t p real; names=[z t p];
X=[z*tan(t)*cos(p); z*tan(t)*sin(p); z];

Contact us at files@mathworks.com