Question: i'd like to write a little c program that finds parameter of a parametric quadratic equation like:
(k+2)x²+(k-2)x+k-2=0
If i want to find k for x1=-x2, how can i do? Is there a way to convert inserted string to mathematical operations(if i insert k-2, can the program resolve it, and even with a fraction?).
EDIT: my program would ask for the 'a' factor(k+2), then for the 'b'(k-2) and 'c'(k-2) ones. My problem is to read the operations in input and even combine them in fractions.