Sym

10 views (last 30 days)
john
john on 1 Mar 2012
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 Comment
Sean de Wolski
Sean de Wolski on 1 Mar 2012
also note, b is converted to double before sym and some precision is lost

Sign in to comment.

Accepted Answer

Andrew Newell
Andrew Newell on 1 Mar 2012
Use vpa, e.g.,
c = vpa(a*b,4)
  11 Comments
john
john on 6 Mar 2012
ok,
thank you again
Andrew Newell
Andrew Newell on 6 Mar 2012
I was using the Maple Toolbox.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!