How to get only real value for equation?

11 vues (au cours des 30 derniers jours)
Sakshi Tak
Sakshi Tak le 30 Oct 2020
Modifié(e) : Ameer Hamza le 30 Oct 2020
The following equation of z has three answers (one real and two imaginary). So, how to get real value only?
y = 0.6447;
z = (y-1)^(1/3)

Réponse acceptée

Ameer Hamza
Ameer Hamza le 30 Oct 2020
Modifié(e) : Ameer Hamza le 30 Oct 2020
Use nthroot() command
y = 0.6447;
z = nthroot(y-1, 3)

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by