Find the value ofa for which the function f defined by
f(x)=⎧⎪ ⎪⎨⎪ ⎪⎩a sinπ2(x+1),x≤0 tanx− sinxx3,x>0 iscontinuous at x=0