A complex number a≠-1 is the root of an equation x
3+1=0.
Find 1+2a+3a2+4a3+5a4.
syms x
s=solve(x^3+1==0)
for a=[s(2) s(3)]
simplify(1+2*a+3*a^2+4*a^3+5*a^4)
end
finds
s =
-1
1/2 - (3^(1/2)*1i)/2
(3^(1/2)*1i)/2 + 1/2
ans =
-6
ans =
-6
The answer is 1+2*a+3*a^2+4*a^3+5*a^4 = -6
|
Posted by Charlie
on 2024-04-23 11:14:35 |