Simplify expression displayed in command window

2 ビュー (過去 30 日間)
Philosophaie
Philosophaie 2013 年 9 月 18 日
How can r be simplified? r is used further down the program as a number. I just want r to be displayed as a number in the command window. What operator do I have to add in front of r to display it in number form?
r =
1/332306998946228968225951765070086144*35635536596067290180312771580437^(1/2)*332306998946228968225951765070086144^(1/2)

回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 9 月 18 日
vpa(r,10) %change 10 to desired number of digits
or
double(r)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by