how can I see equation openly like (x+y)^2 = x^2+2xy+y^2

5 visualizaciones (últimos 30 días)
Hakan Güngör
Hakan Güngör el 13 de Dic. de 2020
Respondida: dileesh pv el 14 de Dic. de 2020
If my equation is (x+y)^2 and I want see that as x^2+2xy+y^2 at the answer, which code should I use?
Or the real problem is my function is f(x) = x^2 and I want to learn f(2+3i). matlab shows it like f(2+3i)=(2+3i)^2 but I want to see -5+12i as answer. How?

Respuestas (1)

dileesh pv
dileesh pv el 14 de Dic. de 2020
Try the command simplify; see a sample code below;
syms x y
simplify((1 - x^2)/(1 - x))

Categorías

Más información sobre Function Creation en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by