Thank you for all the superb replies.
I'm looking for a source that either has the relevant formulas or, where I can figure out the formulas. Ultimately to implement them in some form of auto tuner. (An intelligent version of an autotuner matching algorithm - if that makes any sense).
I'm investigating: GNU Octave code and TLW (i have a version of the ARRL Antenna Book).
I've used SimSmith, it's a great programme. (Effectively, I'm looking for the underlying math to automate the match.)
Kind regards,
Andrew