THanks for your comments, I've already done this in csharp. Simultaenous equations are very very complicated in computing and I believe beyond the capacity of mIRC scripting language. I have a multiple solution simultaneous equation solver if you're interested. This script also does quadratics and gives all solutions to them. Factorisation is possible but unfortunately don't have time to implement them into mIRC though have done all these things in csharp. You're welcome to edit the script how you wish though :)