Let us know how this might play a role in your workflows. I'm interested in hearing your comments on this. John has given us a nice tool for manipulating integers. Also, it supports matricesĪnd n-dim arrays of numbers, and allows you to combine symbolic and numeric variables in expressions like "1.2*x+3.4*y". VPA (from our Toolbox) also supports floating point numbers it can work with Pi, for instance. John's VPI class deals only with scalar integers, whereas If you need more, or faster, there's always the Symbolic Math Toolbox. Due to the precision needed to calculate the results, I have to do the majority of calculations in the Symbolic Toolbox and import the results to Matlab. I have a fairly large program that I developed to calculate/plot the results of the research I am doing in tire modeling. Consider:ĭisp( 'Not gonna do it.wouldn''t be prudent!')Įnd The maximum value of n allowed is 2^32.ġ 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 I recently updated my installation of Matlab from 2010a to 2012a. Using his object class, one can easily manipulate very large integers-often larger Know how "simple" his solution was to implement, but John created a new variable class (vpi) that is quite easy to use.Īctually, John's code is pretty impressive. Since I don't have the symbolic toolbox, the simple solution was to write it in MATLAB." I don't "Every once in a while, I've wanted to do arithmetic with large integers with magnitude exceeding that which can fit into In his introduction to his submission on variable precision integer arithmetic, John D'Errico wrote: Brett's Pick this week provides a subset of the functionality of our Symbolic Math Toolbox, but doesn't require any tools besides core MATLAB!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |