Calculate function values ​​with lagrange interpolation method

xiaoxiao2021-03-06  66

X: 10 15 20 Y: 1 1.1761 1.3010 Seeking F (13);

Answer: #include #include

Void main (void) {int N; float * x = null; float * y = null; float xfound; float yget = 0.0; float ygetTemp = 1.0;

Printf ("Please enter the number of N you want to enter:"); scanf ("% d", & n);

Printf ("Please enter the value of known X (eg 10 29 23 ...):"); x = (float *) malloc (sizeof (float) * n); for (int client = 0; Client

Printf ("Please enter the value of known y (eg 23 23 23 ...):"); y = (float *) malloc (slient = 0; Client

INT TEMP; for (Client = 0; Client

转载请注明原文地址:https://www.9cbs.com/read-111416.html

New Post(0)