how to obtain maximum numbers after decimal point?

hi
in calculation, my problem needs at least 20 to 30 digits after decimal point for e.g (1.234567898745612321654645454875) for perfect answer. but in matlab using "format long" i just get 15 digits after decimal. is there any way to get values upto 20 to 30 digits after decimal point. kindly help me i will be highly thankful to you
With best Regards Mudasir

 Accepted Answer

No there is not. You will need to use the symbolic toolbox or one of John D'errico Variable Precision toolbox contributions to the File Exchange.

5 Comments

Sir, vpi command is not working in matlab and produce error.
What happens when you try it? Did you unzip the toolbox into an empty directory and use pathtool to add the directory to your MATLAB path?
Dear Sir,
I unzip the folder and give path by SET PATH option but it still give error like Undefined function 'vpi' for input arguments of type 'double'.
sir my program require at least 20 to 30 digits after decimal without this precision i cannot do any thing useful with my code.

Sign in to comment.

More Answers (0)

Products

Tags

Community Treasure Hunt

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

Start Hunting!