It is necessary to implement a program for solving equations on pure SI . Initially, to enter the equation itself implemented the following:
printf("Введите коэффициенты a, b и c"); scanf("%lf%lf%lf", &a, &b, &c); I would like to make it so that the user can enter a string, for example, 4x ^ 2-6x-2 = 0 , and the program distributes 4 , -6, and -2 among variables a , b, and c, respectively.
PS Is it possible to implement the following program? A person enters an equation of different types (square, cubic, fourth degree), and the program understands what type it is and distributes the coefficients.