B\cos{\left(k{a\over 2}\right)}