tangent function added to channel.c
updated tangent function in channel.c, channel.h