Question: RE: How to reweite an expression

Dear all, 

Would you allow me to ask a question?

What would be a way to re-write the 'eq2' in the following worksheet as 'eq_given'? The check, 'is...'. shows that two expressions are the same. 


 

restart;eq1:= (-k*I + 2*I + m)*sqrt(3) - 3*I*m - 3*k;

(-I*k+2*I+m)*3^(1/2)-(3*I)*m-3*k

(1)

eq2:=eq1 / 2;

(1/2)*(-I*k+2*I+m)*3^(1/2)-((3/2)*I)*m-(3/2)*k

(2)

eq_given:= (-sqrt(3)*I/2 - 3/2)*(k + I*m) + sqrt(3)*I;

(-((1/2)*I)*3^(1/2)-3/2)*(k+I*m)+I*3^(1/2)

(3)

is(eq_given - eq2 = 0);

true

(4)

 


Thank you, 

Download Q20200817.mw

Please Wait...