in BASIC, an inversion is something like taking a Cmaj chord and starting on E or G, isntead of C.
Generally it is notated in such ways as C7 / A or C / E...
However, then you start running into issues with chord voicings, and what people intend. It can get very confusing when you are trying to decide whether it is a D chord meant by C / D or a C9, for example (I'm not very solid on this either)
