Sym

13 Ansichten (letzte 30 Tage)
john
john am 1 Mär. 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 Kommentar
Sean de Wolski
Sean de Wolski am 1 Mär. 2012
also note, b is converted to double before sym and some precision is lost

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Andrew Newell
Andrew Newell am 1 Mär. 2012
Use vpa, e.g.,
c = vpa(a*b,4)
  11 Kommentare
john
john am 6 Mär. 2012
ok,
thank you again
Andrew Newell
Andrew Newell am 6 Mär. 2012
I was using the Maple Toolbox.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by