Can algebraic formula 9 (1-x) ^ 2-12 (1-x ^ 2) + 4 (1 + x) ^ 2 be decomposed by complete square formula? If so, please decompose

Can algebraic formula 9 (1-x) ^ 2-12 (1-x ^ 2) + 4 (1 + x) ^ 2 be decomposed by complete square formula? If so, please decompose


What can be used:
Original formula = [3 (1-x)] ^ 2-2 × 3 × 2 (1-x) (1 + x) + [2 (1 + x)] ^ 2
=[3(1-X)-2(1+X)]^2
=(1-5X)^2.



How to calculate algebra in C + +?
For example, the user CIN a char * "(sin (3) + cos (3)) / 2", how to calculate this string?
What kind of algorithm can be used to calculate the contents of a string type algebraic formula, which has + - * / and some mathematical functions ~ and brackets~


You mean to make a calculator or something
Understand that the more trouble, but it is not very difficult
The students next to me said that we should use two stacks, one stack to store the operands, the other stack to store the operators, judge the operators, pop up immediately if the conditions are met, and then take the operands. If we encounter some specific operators (such as brackets), we have to wait for the next operator~~~~
A little bit of trouble



Algebraic operation
Given 2x-y = 3, then find the value of 1-4x + 2Y
Given 2x-3y = 5, find the value of 6x-9y-5
The polynomial 3x & # 710; 2-2xy-y & # 710; 2-x + 3y-5 is divided into two groups, and the two brackets are connected with a "-" sign, and the first bracket contains x term
Let (3x-1) & # - 710; 5 = a ˇ 5x & # - 710; 5 + a ˇ 4x & # - 710; 4 + a ˇ 3x & # - 710; 3 + a ˇ 2x & # - 710; 2 + a ˇ 1x + a ˇ 0, find the value of a﹊5-a ˇ 4 + a ˇ 3-A ˇ 2 + a ˇ 1-A ˇ 0
If M & # 710; 2-2m = 1, find the value of 2m & # 710; 2-4m + 2008
If x + y = 1 / 2, then find the value of 2x + 2Y, X - (1-y)
2a-(a-b)
(a-b)+(-c-d)
The opposite number of A-B
(x+1/4)-(2x-1/2)
a-b+c-d=a-( )
5aˆ2-6a+9bˆ2=5aˆ2-3( )
( )-(4ab-3bˆ2)=aˆ2-7ab+8bˆ2
(4xˆ2-5x+7)-(2xˆ2-5x-1),x=5
(xˆ2+1/2xy+1/2yˆ2)-(xˆ2+3/2xy-2yˆ2),x=-(1/4),y=1/2
2xy-1/2(4xy-8xˆ2yˆ2)+2(3xy-5xˆ2yˆ2),x=3/2,y=-(2/3)
Given a = 4A & # 710; 2-3b, B = 2A & # 710; 2 + A-1, find a-b


The first question is 1-2 (2x-y) = - 5
The second question is 10



It's still a few multiplication formula problems in grade one,
If a satisfies (n-2004) power + (2005-n) power = 1, find the value of (n-2004) * (2005-n)
If a + B-C = 9, a + B + C = 27, then the 2015 power of a + the 2015 power of B + the 2015 power of C is what
Given x-2xy + 2Y + 6x-6y + 9 = 0. Find x, y


If a satisfies (n-2004) power + (2005-n) power = 1, find the value of (n-2004) * (2005-n). By using the complete square formula (a + b) &# 178; = A & # 178; + 2Ab + B & # 178;, we can get (n-2004) &# 178; + (2005-n) &# 178; = (n-2004) &# 178; + (2005-n) &# 178; + 2 (n-2004) (2005-n)