How to replace approximate real numbers near zero in expression with exact integer 0?
Mostra commenti meno recenti
Sometimes we have very small coefficients in symbolic operations.
syms x y
y = sin(pi)*x;
The result is
y =(4967757600021511*x)/40564819207303340847894502572032
How to replace approximate real numbers near zero in expression with exact integer 0?
Risposta accettata
Più risposte (1)
Walter Roberson
il 13 Dic 2018
syms x y
Pi = sym('pi')
y = sin(Pi)*x;
Categorie
Scopri di più su NaNs in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!