結果 : q function and error function