Calculate Function From Inverse Matrix