Added function to detect whether a equation contains one var