I get the following expression for a variable 'a' :
2-7/6+1/6*97^(1/2)+1/6*(-646-86*97^(1/2))^(1/2) -7/6+1/6*97^(1/2)-1/6*(-646-86*97^(1/2))^(1/2) -7/6-1/6*97^(1/2)+1/6*(-646+86*97^(1/2))^(1/2) -7/6-1/6*97^(1/2)-1/6*(-646+86*97^(1/2))^(1/2)
What is the command to simplify it to get a single value in the command window ?

 Respuesta aceptada

Oleg Komarov
Oleg Komarov el 22 de Abr. de 2011

1 voto

If a is sym:
double(a)

1 comentario

Kritika Vashishtha
Kritika Vashishtha el 30 de Mayo de 2019
or you can just use the func simplify
simplify(a).

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Preguntada:

el 22 de Abr. de 2011

Comentada:

el 30 de Mayo de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by