Accuracy small numbers converted to symbolic

6 views (last 30 days)
Any idea how to eliminate the inaccuracy occuring when converting small numbers to symbolic:
Current Example:
>> sym(2e-6)
ans =
4722366482869645/2361183241434822606848
>> sym(2e-5)
ans =
1/50000

Accepted Answer

Walter Roberson
Walter Roberson on 4 May 2021
sym('2e-6')
ans = 
0.000002
sym(2)*10^(-6)
ans = 

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!