Hello,
My problem is as follows: I wanted to implement the Lagrange interpolation and defined a double to create a TF1. Everything works fine as long as I don’t try drawing the interpolation function. The code and the error report are shown in the figure.
Thanks in advance.
Thank you for your help!
I tried to use files in the turorials to find the problem. I find that the error code will occur if I do not indicate the number of parameters when creating a TF1 with a user function. My problem remained unsolved however after I rewrote my code.
After I intergrated la and lp, the problem were solved somehow. Yet I cannot figure out the inner mechanism.
Thanks again for your help. By the way, September 29th is the Chinese Mid-Autumn Festival. Wish you a happy Mid-Autumn Festival!