public String getFormula()
    {
        String out = "";
        for(int i = 0; i < terms.length; i++)
        {