Analysis of the Area Under a Curve (AUC) using C-programming: Trapezium and Simpson rules techniques.

  • Ainul Nadira Tuah Universiti Pendidikan Sultan Idris
  • Abu Bakar Ibrahim Universiti Pendidikan Sultan Idris
  • Sumayyah Dzulkifly Universiti Pendidikan Sultan Idris
  • Fauzi Mohammad Yusof Universiti Pendidikan Sultan Idris
  • Ramli Awang Nor Politeknik Jeli, Kelantan
  • Razali Ariffin Politeknik Jeli, Kelantan
Keywords: C-programming, Trapezium and Simpson rules, area under a curve


This study aimed to analyze the Area Under a Curve (AUC) using C-programming i.e. Trapezium and Simpson rules. There are various mathematical methods that can be applied to solve numerical integration for different data spaces. Among them are the Trapezium and Simpson rules which are widely used to solve numerical integration equations. The objective of this study was to study the calculation of the area under the curve more accurately and to identify the error differences between the Trapezium and Simpson rules in the calculation of the area under the curve. In addition, it also compares the fit between the Trapezium and Simpson rules. This study focuses on identifying methods that provide more accurate values in the area below the curve. C-programming study utility to verify the accuracy of area calculations under the curve between Trapezium and Simpson rules. The results showed a difference of 6.93% in the area under the curve for calculations using C-programming based on the Trapezium rule compared with the exact calculations. Meanwhile, a calculation difference of 6.23% was recorded for the Simpson rules. In general, the data show that the Simpson rules obtained a relatively low difference of 0.623 when compared to the Trapezium rule which yielded a value of 0.693 which means that the Simpson rule has a more accurate estimate value for AUC calculation using C- programming when compared to the Trapezium rules.


Download data is not yet available.


Barnhart, H. X. (2016). Assessing agreement with relative area under the coverage probability curve. Statistics in Medicine, 35(18), 3153-3165.

Gangele, S. (2014). An approach for area estimation towards conjunction control of internet traffic sharing by using Simpson rule. International Journal of Engineering Trend and Technology, 16(2), 88-99.

Ibrahim, A. B., Mutalib, M. F. H. A., Abdullah, Y., Majid, M. H. A., & Dzulkifly, S. (2021). Analisa ‘Course Learning Outcome Monitoring’ bagi kursus Matematik dalam Kejuruteraan. Journal of ICT in Education,8(4),64-70.

Liu, J., Sun, M., Dong, Y., Xu, F., Sun, X., & Zhou, Y. (2022). The mediating effect of creativity on the relationship between mathematic achievement and programming self-efficacy. Frontiers in Psychology, 12. 10.3389/fpsyg.2021.772093

Mohd Noor, N. F., & Saad, A. (2021). Requirement elicitation techniques for a C-programming learning application. Journal of Technology and Humanities, 2(2), 10-16.

Simpson, K., Simpson, J., & Thalayasingam, B. (2020). Mary Margaret Simpson. BMJ: British Medical Journal (Online)

Upmanyu, N., Shah, K., Porwal, P. K., & Talele, G. S. (2016). Degradation Kinetics of Olopatadine HCL Using a Validated UV-Area under Curve Method. J Anal Pharm Res, 2(2),

Valendry, R. (2021). Analysis of three-layer concentric tube heat exchange using Mathematic modelling. Journal Basic Science and Technology, 10(3), 86-92. v10i3.1757

How to Cite
Tuah, A. N., Ibrahim, A. B., Dzulkifly, S., Mohammad Yusof, F., Awang Nor, R., & Ariffin, R. (2022). Analysis of the Area Under a Curve (AUC) using C-programming: Trapezium and Simpson rules techniques. Journal of ICT in Education, 9(1), 143-153.

Most read articles by the same author(s)