Wikipedia details the technique for converting from toroidal coords to cartesian. How do you convert the other way? *EDIT* Is there any free (or nearly free) software which allows you to solve algebraic equations and express variables in terms of existing formulae, AND supports sin, cos, tan etc. to do so? I.e. something which would help answer my initial question.