Azzera filtri
Azzera filtri

Sym

2 visualizzazioni (ultimi 30 giorni)
john
john il 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 Commento
Sean de Wolski
Sean de Wolski il 1 Mar 2012
also note, b is converted to double before sym and some precision is lost

Accedi per commentare.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by