py_Integrate update

I recently discovered that changes to how Python handles the locals() function was causing problems with some of the functions in the py_Integrate.xlsb spreadsheet. That has now been fixed, and all the updated files are included in the py_Scipy.zip file, that can be downloaded from:

py_SciPy.zip

For more details of the functions included in the spreadsheet see:

Scipy Functions with Excel and pyxll 6 – Integration

Posted in Excel, Link to Python, Newton, Numerical integration, NumPy and SciPy, PyXLL, UDFs | Tagged , , , , , , , , , , | Leave a comment

Numerical Integration With Tanh-Sinh Quadrature v 6.0

Graeme Dennes has updated his Tanh-Sinh Quadrature spreadsheet to V 6.0. The new version (including full open source code) may be downloaded from:

Tanh-Sinh Quadrature

Graeme’s summary of the new features in the spreadsheet:

  1. All programs run at near twice the speed of the v5.03 programs.
  2. The accuracy of the finite interval programs has been improved.
  3. All programs are written in Excel VBA.
  4. As implemented, the Tanh-Sinh integrator may be the fastest Excel VBA finite-interval integrator available.

5.      The Romberg integrator may be the fastest and most accurate Excel VBA Romberg integrator available.

6.      Now includes over 1200 test integrals with true results to 15 significant digits. This may be the largest set of diverse test integrals available at no cost. It includes several of the “standard” sets of test integrals in wide use.

7.      The Plotter worksheet shows two plots: the plot of the selected function over the specified finite interval, and the (part) plot of the function after being transformed by the Tanh-Sinh function. It’s the transformed function which is integrated by the Tanh-Sinh integrator over the entire real line (-inf to +inf).

8.      The workbook provides a convenient test bed for developing and implementing Excel VBA integration programs and for comparing the performance of your programs with the programs in this workbook. Replace the core integration code in one of the program modules which have the same interval type as your own program, retrofitting your code into the existing program structure.

9.      Should you develop an Excel VBA Tanh-Sinh integrator program which improves on the accuracy and speed of the Tanh-Sinh program in the workbook, I urge you to leave a comment on Newton Excel Bach and I will happily recognise your contribution.

Note that the speed improvement is clearly visible when integrating VBA functions. When integrating functions entered as text on the spreadsheet nearly all the computation time is in converting the text values and symbols to numerical values.

As always, if you have any questions or comments, please leave a comment below.

Posted in Excel, Maths, Newton, Numerical integration, UDFs, VBA | Tagged , , , , | Leave a comment

Cleaning Data – Sort functions and shortcuts

Back in 2020 I posted here on New sort functions and sorting to groups, looking at using the sort functions to clean data. Revisiting that post I found that the link to the sample spreadsheet was broken, and that is now fixed:

GroupSort.zip

That post caught the attention of the people at PdfHaul, and they drew my attention to their blog, which has a wealth of information on pdf related topics, including using Excel with pdf data.

Click image to go to the blog:

Posted in Computing - general, Excel | Tagged , , , | Leave a comment

Maeve Gilchrist – Beeswing

Maeve Gilchrist is a Scottish harpist who plays a wide variety of musical styles. Here she is with her version of Richard Thompson’s song Beeswing:

Posted in Bach | Tagged , , , , | Leave a comment

Lists and Arrays in Excel

I recently learned from MyOnlineTraingHub that Microsoft recently released a new feature allowing lists, arrays, and nested arrays to be stored in single cells. This feature is currently only available on the Beta Channel for Microsoft 365 Insiders, but it will be interesting to see how this interacts with pyxll cache objects, when it becomes generally available.

See the YouTube video for more details:

Posted in Arrays, Excel | Tagged , , | Leave a comment