I'm trying to write some code to generate plausible star systems, but so far, I only have a main sequence star generator, and even with that I don't know how good the mass-radius relationships are. So, I'm coming here to ask for some formulas or pointers as to where I can go to find the math to...