SYNTAX: M = mutinds(ra,za,rb,zb)
[M,Mr,Mz,Mrr,Mrz,Mzz,Mrrr,Mrrz,Mrzz,Mzzz] = mutinds(ra,za,rb,zb)
Mzz = mutinds(ra,za,rb,zb,'zz'), returns a specific derivative
S = mutinds(ra,za,rb,zb,3), returns struct matrix of derivatives
S(i,j).f is the (i-1)th z, (j-1)th r derivative of M
For small distances d = sqrt((rb-ra)^2+(zb-za)^2) < 1e-6*ra
the relative error for mutinds(1,0,1+d,0) is 3e-18/d, but
M = mutinds((ra+rb)/2,d,[],[]) can be used to get full accuracy
PURPOSE: Calculate mutual inductance between coaxial loops
INPUTS: ra,za = coordinates of first current loop [meters]
rb,zb = coordinates of second current loop [meters]
sizes can be mixed, outputs have same size as ra+za+rb+zb
flag to request a specific derivative or matrix of derivatives
allowed strings: 'r','z','rr','rz','zz','rrr', etc up to 'zzzzzz'
allowed integers: 0,1,2,3
OUTPUTS: M = mutual inductance between loops a and b [H]
Mr, Mz, Mrr, Mrz, ..., Mzzzzzz = derivatives w.r.t. rb and zb