Last updated
Last updated
Estimate the velocity from the dataset of acceleration
Download the tutorial source file and fill in the blanks.
Run the code and validate your answer
MATLAB tutorial source file :
Print the output in PDF and submit it to LMS
Create a new empty project in Visual Studio Community.
Name the project as TU_Integration
e.g ) C:\Users\yourID\source\repos\NP\tutorial\TU_Integration
Create a new C/C++ source file for main()
Name the source file as TU_integration_main.cpp
This is NOT for the assignment
Create a function for numerical differentiation from a set of data. Read the instructions in the source code.
Create Trapezoidal method for discrete data inputs. Upload the result in LMS.
In the report, screen capture the output window and paste your code
Use 1D array type with dataset length m.
intervals= N, # dataset=N+1=m, The ranges are x[0] to x[m-1]
Declare and define your functions in your header files, located in \include
folder
function definitions: myNP.h
function declaration: myNP.cpp
Create Simpson13 method for discrete data inputs. Upload the result in LMS.
In the report, screen capture the output window and paste your code
Use Simpson 13 method :
N even numbers, same intervals, from a(=x0) to b(=xN), h=(b-a)/N.
The interval should be h=(b-a)/N
Defined in myNM.cpp source file
Simpson 13 method :
On the Answer template document, show your code and the output window, and submit it to LMS
Create Simpson13() when a function is given as the input. Upload the result in LMS
In the report, screen capture the output window and paste your code
Use Simpson 13 method :
N even numbers, same intervals, from a(=x0) to b(=xN), h=(b-a)/N.
The interval should be h=(b-a)/N
Defined in myNM.cpp source file
Create the following function that calls myFunc()
. The true answer is PI/2
Paste from the following code:
Download the answer report file for this tutorial. :
The answer report file download :