• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

Coefficients for finite difference approximation in Python (meth. of undetermined coefficients)

Dear Daniel. I believe my question is pretty straightforward: I have a function in Matabl, I want a similar one in Python.
 
It's 'divided differences'. Finite difference is different and talking about coefficients is nonsense in that case.

Have you checked numpy, scipy
https://docs.scipy.org/doc/numpy/reference/generated/numpy.diff.html


These techniques are highly unstable and ill-posed in general. Better not to use it. And I have never used it myself.

Out of curiosity, what's the problem to be solved?
 
Last edited:
Thank you Daniel..
Educational purpose only.. I am in quarantine from work so I have deicded to spend time learning numerical analysis. I managed to buy a copy of
Randy LeVeque -- Finite Difference Methods for ODEs and PDEs (the only book available at the university bookshop close to my home in Denmark, Copenhagen.)

I am simply trying to play around the concepts introduced in chapter 1 but I don't have Matlab license (too expensive).
 
Last edited:
Back
Top