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