Relative Content

Tag Archive for cnumerical-integration

Applying the Trapezoidal Method for Integration on Matrix in C

I have a 2×2 matrix, called “one_elect”, which is a function of a variable “r” but I am a little confused as to how to apply the Trapezoidal Method for integrating onto this matrix. I am a decent beginner in C; essentially, I don’t know how to loop this matrix for that particular variable. Please see the code below for a beginner trapezoidal integration code and the code I am working on.