about to remove root-finding in C
added sign to input