Skip to content

Instantly share code, notes, and snippets.

View ikariiin's full-sized avatar
🐜
Focusing

Gourab Nag ikariiin

🐜
Focusing
View GitHub Profile
#include <stdio.h>
#include <math.h>
float lagrange(float x, int n, float xi[], float yi[])
{
float sum = 0;
for (int i = 0; i < n; i++)
{
float product = 1;
for (int j = 0; j < n; j++)