Comparing cubic splines and global polynomial interpolation