function [B] = square_wave_amp(i)
% Function to evaluate a square wave Fourier Series term amplitude
B = 2 ./(i.*pi) .* (1 - cos(i.*pi));
end