human
Form the Cubic equation from the given roots | Function to find the cubic equation whose roots are a , b and c.
Find the value of coefficient.
Print the equation as per the above coefficients.
Driver Code.
Function Call"
Solution in Python:
 ... Can you provide a code to form the Cubic equation from the given roots and the other steps required?
assistant
#Here is code to form the Cubic equation from the given roots and the other steps required.
 def findEquation ( a , b , c ) :
	X = ( a + b + c ) ;
	Y = ( a * b ) + ( b * c ) + ( c * a ) ;
	Z = ( a * b * c ) ;
	print ( " x ^ 3 ▁ - ▁ " , X , " x ^ 2 ▁ + ▁ " , Y , " x ▁ - ▁ " , Z , " ▁ = ▁ 0" ) ;
if __name__ == ' _ _ main _ _ ' :
	a = 5 ;
	b = 2 ;
	c = 3 ;
	findEquation ( a , b , c ) ;