Remarkable matrices and trigonometric identities