Question
hey i need solution for this function in visual basic problem: The developed program must read data from a text file (.txt), calculate the average
hey
i need solution for this function in visual basic
problem:
The developed program must read data from a text file (.txt), calculate the average of hardnesses for each measured distance, interpolating the known points to obtain a series of coordinates for all distances to within 0.001 "and save this series of points in a spreadsheet file (.csv). The paths of the file to be read and the registration file will be entered by the user of your program. The function determining the coordinates of all points shall be determined by a interpolation of Lagrange. Interpolation provides the hardness for each point with a 0.001 inch increment between the first and the last of the list of known points. Warning: the use of Visual Studio francophone software requires the transformation of points in commas after reading the text file before converting to duplicate. Explanation of the Lagrange interpolation: The polynomial P (x) of degree N interpolates N + 1 points Pi (xi, yi). The expression of P (x) is:
and the file1.txt is :
Matriau: aluminium 6061-T6 1/4 en WELDING: TIG 0375: 68,43; 68,54; 68,32 0,500: 52,23; 52.06; 52,17 0625: 49,76; 49,83; 49,97 0,750: 61,09; 61,27; 61,16 000: 78,18; 78,34; 78,23, 1,250: 82,12; 81,98; 82.14 1500: 94,66; 94,58; 94,51 1,750: 99,45; 99,62; 99,37
i=0 t4s i=0 t4sStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started