answersLogoWhite

0

#include<stdio.h> #include<conio.h> #include<math.h> void

main() { float

x[10],y[10],temp=1,f[10],sum,p; int

i,n,j,k=0,c; clrscr(); printf("\nhow many record you will be enter: "

); scanf("%d"

,&n); for

(i=0; i<n; i++) { printf("\n\nenter the value of x%d: "

,i); scanf("%f"

,&x[i]); printf("\n\nenter the value of f(x%d): "

,i); scanf("%f"

,&y[i]); } printf("\n\nEnter X for finding f(x): "

); scanf("%f"

,&p); for

(i=0;i<n;i++) { temp = 1; k = i; for

(j=0;j<n;j++) { if

(k==j) { continue

; } else

{ temp = temp * ((p-x[j])/(x[k]-x[j])); } } f[i]=y[i]*temp; } for

(i=0;i<n;i++) { sum = sum + f[i]; } printf("\n\n f(%.1f) = %f "

,p,sum); getch(); }

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How can I use scipy.interpolate.griddata to perform interpolation on gridded data?

To use scipy.interpolate.griddata for interpolation on gridded data, you need to provide the grid points and corresponding values, along with the points where you want to interpolate. The function will then estimate the values at those points using interpolation techniques such as nearest neighbor, linear, or cubic.


How can I use the interpolate.griddata function to perform interpolation on my data points?

To use the interpolate.griddata function for interpolation on your data points, you need to provide the function with your data points, the grid points where you want to interpolate, and the method of interpolation you want to use. The function will then calculate the interpolated values at the grid points based on your data.


Which types of task can perform in the edit can you make the program in it?

you can perform in the edit prompt? can we make the programme in it?


Which type of task you can perform in the EDIT prompt can we make the program in it.?

you can perform in the edit prompt? can we make the programme in it?


Which types of task you can perform in the edit prompt can we make the program in it?

you can perform in the edit prompt? can we make the programme in it?


How can Python be used for 2D interpolation on an irregular grid?

Python can be used for 2D interpolation on an irregular grid by utilizing libraries such as SciPy and NumPy. These libraries provide functions that can interpolate data points on an irregular grid to estimate values at new points within the grid. By using these libraries, Python can efficiently perform 2D interpolation on irregular grids for various applications in data analysis and visualization.


How to perform 2-D separable Interpolation by zero-order function to a 2D image?

This might be a 2D image of what you want. Refer to the related link showing 2d magnetic fields.


What is system application?

its somethinmg to do with windows and powerpoint and exel


What is utility programme in a computer?

Programmes in computer are step by step instructions that are design to enble the computer operate and perform a specific task


Clear idea about software?

a software is a set of different programmes logically related to each other. a programme is a set of instructions written to perform a specific task..... a software is made to solve or to perform a particular function or task.


Write a programme to perform binary operations on integer argument The arguments and operators should be accepted using command line parameters?

There are many different operators, which are you referring to?


What consists of cell references numbers and arithmetic operators that instruct Excel to perform a calculation?

A formula.