由于某种原因,它永远不会插值,但它将0作为答案。代码是: PROGRAM LAGRANGE
REAL X(0:100), Y(0:100), INTERP
REAL TEMP = 1.0
REAL POLINOM = 0.0
N=10
OPEN(1,FILE="datos.txt")
DO I=0,100 !We 'clean' the
#include <iostream>
#include <string>
using namespace std;
int main()
{
int arr[] = {1,3,5,7,9,11,13,15,17,19,21};
int first, last, pos, key;
first = 0;
last = (sizeof(arr