Effacer les filtres
Effacer les filtres

division of factor in polynomial

1 vue (au cours des 30 derniers jours)
Howard Padmore
Howard Padmore le 11 Juin 2023
Commenté : Dyuman Joshi le 12 Juin 2023
using sym I ended up with the following polynomial in y and x with terms x^2, x^4, x^2, y^4
(4*R^3*r^2*y^2 + R^3*y^4 + 4*R^2*r^3*x^2 + 2*R*r^2*x^2*y^2 + r^3*x^4)/(8*R^3*r^3)
I would like to divide the expression by the denominator 8*R^3*r^3, so for example the 1st term would say appear as y^2/(2*r)
Anyone know how to do this?

Réponse acceptée

Walter Roberson
Walter Roberson le 11 Juin 2023
expr = str2sym('(4*R^3*r^2*y^2 + R^3*y^4 + 4*R^2*r^3*x^2 + 2*R*r^2*x^2*y^2 + r^3*x^4)/(8*R^3*r^3)')
expr = 
expand(expr)
ans = 
  2 commentaires
Howard Padmore
Howard Padmore le 12 Juin 2023
Perfect. Many thanks for the fast reply.
Dyuman Joshi
Dyuman Joshi le 12 Juin 2023
@Howard Padmore if this answer solved your problem, please consider accepting it.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by