comiled score equations function