Quasilinearity of some composite functionals associated to Schwarz's inequality for inner products