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]=cylin
function [X,names]=cylin
% [X,names]=cylin defines cylindrical coordinates
syms r t z real; names=[r t z];
X=[r*cos(t); r*sin(t); z];

Contact us at files@mathworks.com