フィルターのクリア

Sym

2 ビュー (過去 30 日間)
john
john 2012 年 3 月 1 日
Hi,
how can I change format of sym number? For example:
a=sym(2.34353453465464);
b=sym(4.6546455789879324352);
format short
c=a*b
Format short doesn't work.
Thanks
  1 件のコメント
Sean de Wolski
Sean de Wolski 2012 年 3 月 1 日
also note, b is converted to double before sym and some precision is lost

サインインしてコメントする。

採用された回答

Andrew Newell
Andrew Newell 2012 年 3 月 1 日
Use vpa, e.g.,
c = vpa(a*b,4)
  11 件のコメント
john
john 2012 年 3 月 6 日
ok,
thank you again
Andrew Newell
Andrew Newell 2012 年 3 月 6 日
I was using the Maple Toolbox.

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by