How to get a result more exact?

2 views (last 30 days)
Nadia Bica
Nadia Bica on 4 Jun 2015
Commented: Nadia Bica on 4 Jun 2015
Hello I'm solving a problem with eigenvalue fuctions and FEM (finite element method).
I will writte it down the results i get to try explain myself better: for n elements
n=1 --> CriticalLoad=4.4049; n=2 --> CL=3.6823; n=4 --> 3.6788 and n=8 --> 1*10^3*(0.0037)
What i would like to know is how can i have a more exact result, I mean with more numbers specially in the last one...
I hope that you understand what i mean.
Thank you

Accepted Answer

Jan
Jan on 4 Jun 2015
You did not explain, which code is used to obatin the results. The notation "1*10^3*(0.0037)" looks weird and I cannot guess how this was produced. So how can we suggest an improvement?
A bold guess is, that the results are as accuarate as possible already, but you use a short format to display the values in the command line. So try this:
format long g
and run the code again.

More Answers (1)

Walter Roberson
Walter Roberson on 4 Jun 2015
Give the command
format long g

Categories

Find more on Creating and Concatenating Matrices 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!