![]() The Symbolic Math Toolbox supports the Formula Manipulation and Simplification of mathematical functions. But for anything iterative - and this holds for algorithms in general, not just for my own example of numerically integrating elliptic integral functions - you’ll want to avoid the overhead of switching to the symbolic toolbox mid-calculation. So the symbolic toolbox is fine if you just need to evaluate a value or two. ![]() That’s a small fraction of a second - seems fast! Compare with Igor’s native Matlab function: (Quite an impressive collection, actually.) However, if you actually wish to use these functions for something computationally intensive, such as numerical integration, it’s a bad idea to use them. Those with a variety of Matlab toolboxes, however, will usually run into the newish functions provided by the symbolic toolbox ellipticF, ellipticE, and friends. Hence Igor Moiseev’s valuable work in this area ( now moved to Github). Matlab has historically only included the bare minimum here: in-built function to calculate the first and second complete elliptic integrals. These are a funny set of functions that I’ve discussed before. My real work in magnetics involves evaluating sometimes complex integrals that often result in solutions that include the elliptic integrals. ![]() Elliptic integrals in Matlab: symbolic toolbox is slow Posted: Ap| Author: wspr | Filed under: Uncategorized | Leave a comment ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |