Step 1: Understanding the Concept
For continuity at \(x=\dfrac{\pi}{4}\), \(a=\lim_{x\to \pi/4}\dfrac{\tan x-\cot x}{x-\pi/4}\).
Step 2: Check the form
At \(x=\dfrac{\pi}{4}\): \(\tan x-\cot x=1-1=0\) and the denominator is 0, so it is a \(\dfrac00\) form.
Step 3: Apply L'Hopital's rule
Differentiate top and bottom:
\(\lim \dfrac{\sec^2x+\csc^2x}{1}\).
Step 4: Evaluate
At \(\dfrac{\pi}{4}\): \(\sec^2x=2\) and \(\csc^2x=2\), so \(a=4\).
Final Answer:
The value of \(a\) is 4.
\[ \boxed{\text{(B) }4} \]