Re: Digits of Accuracy: Maple Toolbox for Matlab
- From: "omegayen " <omegayen@xxxxxxxxxxxxx>
- Date: Thu, 23 Jul 2009 18:32:03 +0000 (UTC)
Nathan <ngreco32@xxxxxxxxx> wrote in message <3ce869b2-f59d-4313-a5a3-ec5e271ceaf9@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
On Jul 23, 10:51?am, "omegayen " <omega...@xxxxxxxxxxxxx> wrote:
I have been using the maple toolbox for matlab...... I am interested in keeping a large number of digits in computations but using some of the builtin MATLAB functions.
In Maple, it is quite easy to set the maximum number of digits.... you simply use kernelopts(maxdigits).
I would like to also keep a large number of digits available when working in MATLAB and/or when working in Maple and having MATLAB performing a few calculations.
For example the following is an example to use Maple and have Matlab peform a matrix inversion and send the result back to Maple.....
with(Matlab)
maplematrix_a := Matrix([[3, 3, 2], [4, 5, 2], [6, 2, 4]])
maplematrix_b := Matrix([[3, 2, 5], [1, 8, 2], [7, 3, 4]])
Matlab[setvar]("matlabmatrix_a", maplematrix_a)
Matlab[setvar]("matlabmatrix_b", maplematrix_b)
Matlab[evalM]("c=inv(matlabmatrix_b)*matlabmatrix_a")
Matlab[getvar]("c")
does anyone know how I could have Matlab keep a large amount of digits for example for the inversion, if I were to send it back to Maple.....
Also does anyone have any idea how to keep a large number of digits in Matlab? Thanks.
How about the VPI toolbox on the FEX?
http://www.mathworks.com/matlabcentral/fileexchange/22725
I think that might be what you're looking for.
-Nathan
Hi, Thanks for the reply.... that seems like a solution....... however, the Maple Toolbox for Matlab states "Also, the ability to work with arbitrary precision floating-point numbers is available. As such, computations can be performed using hundreds of digits of accuracy if needed."
I am mainly interested in how I do this? thanks
.
- References:
- Digits of Accuracy: Maple Toolbox for Matlab
- From: omegayen
- Re: Digits of Accuracy: Maple Toolbox for Matlab
- From: Nathan
- Digits of Accuracy: Maple Toolbox for Matlab
- Prev by Date: error in parallel_function
- Next by Date: Coverage Probability Calculation
- Previous by thread: Re: Digits of Accuracy: Maple Toolbox for Matlab
- Next by thread: error in parallel_function
- Index(es):
Relevant Pages
|
Loading