how to simplify a algebra function

17 vues (au cours des 30 derniers jours)
gao peter
gao peter le 5 Oct 2018
Commenté : gao peter le 5 Oct 2018
Hi guys,
Could anyone help me on simplify this function? I wanna remove the brackets.
f(x)=(x^2 + 1)^3
Thank you
  1 commentaire
Fangjun Jiang
Fangjun Jiang le 5 Oct 2018
Modifié(e) : Fangjun Jiang le 5 Oct 2018
come on, you can do it yourself, or a search will do
f(x)=(x^2 + 1)*(x^2 + 1)*(x^2 + 1)

Connectez-vous pour commenter.

Réponse acceptée

Stephan
Stephan le 5 Oct 2018
Hi,
syms f(x)
fun = f(x) == (x^2 + 1)^3
fun = collect(fun,x)
results in:
fun =
f(x) == (x^2 + 1)^3
fun =
f(x) == x^6 + 3*x^4 + 3*x^2 + 1
  1 commentaire
gao peter
gao peter le 5 Oct 2018
Thank you Stephan

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by