MANE 3351 - Manufacturing Engineering Analysis
Laboratory 9 Assignment
Assigned: November 19, 2025
Due: November 26, 2025 (before 9:30 AM)
Learning Goals
- Utilize Python to solve the integral of a common manufacturing engineering problem, and
- Employ AI technology to write a Python program to solve the same problem.
Description
An equation for surface roughness average of a machined profile, \(R_a\) is defined below
where \(L\) is 10 mm and the units of \(R_a\) are in micrometers.
Step 1
Edit the first cell (markdown), to update your personal information for laboratory 9.
Step 2
In cell two, implement one of the numerical integration techniques to solve for \(R_a\) that is not Gaussian Quadrature. Print the results and a description of the parameters used to achieve the result.
Step 3
In cell three, implement a Python program to solve \(R_a\) that is created by a generative AI package such as ChatGPT. Use the prompt "write a python program to find the integral of an equation using Legendre polynomials in scipy" to generate the code. Copy the code into cell three and run the code. You should select \(n\) to give you an accurate answer. The program in cell 3 should output (print) the following information:
- The computed value of \(R_a\),
- The value of \(n\) used to estimate \(R_a\), and
- The generative AI package used to create the Python code used in cell 3.
Step 4
After running and testing your program, save the Jupyter Notebook. Upload your repository using GitHub desktop.