Effacer les filtres
Effacer les filtres

Sym

2 vues (au cours des 30 derniers jours)
john
john le 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 commentaire
Sean de Wolski
Sean de Wolski le 1 Mar 2012
also note, b is converted to double before sym and some precision is lost

Connectez-vous pour commenter.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by