software development and consulting

Often, I want to have a polynomial that meets certain criteria. For most applications in the past, I figured it all out by hand.

Today, I was having trouble getting the conditions specified enough to get the sort of polynomial that I was expecting. After finding the coefficients for several sixth degree polynomials in a row, I figured I should instead be able to do something like this with the proper lisp:

That’s all done now (polynomials.lisp). So, for the record, the above is: . That is still not quite the polynomial I want for this application, but it’s close. A few minutes of Lisp saved me hours of whiteboard work.

Related posts:

Finding Better Polynomials Some time ago, I wrote a small domain-specific language for finding polynomials given their value or the value of their derivatives at particular points. It occurred to me shortly after writing that code that I could easily extend it to include the value of its integral over a certain range....