Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 135,911 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,563 people online right now. Registration is fast and FREE... Join Now!




interpolation

 
Reply to this topicStart new topic

interpolation

felix_alex2001
12 May, 2008 - 01:57 AM
Post #1

New D.I.C Head
*

Joined: 12 May, 2008
Posts: 1

hi...

can any body help me to write a code in C that reads a file and do the interpolation........ The file is as below.............

alpha M beta spin

1 -12 0.8 0 330

2 -8 0.8 0 330

3 -4 0.8 0 330

4 -0 0.8 0 330

5 1 0.8 0 330

6 2 0.8 0 330

7 3 0.8 0 330

8 4 0.8 0 330

9 5 0.8 0 330

I WANT TO READ THE FILE AND STORE THE VALUES OF alpha,M,beta and spin for the 9 cases in a single variable say alpha[i],M[i],beta[i],spin[i]...(the no 9 differs from file to file)...and then perform interpolation.............


Thanks........

This post has been edited by felix_alex2001: 12 May, 2008 - 03:11 AM
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 07:45AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month