This project is to write the two functions that compute the derivative of a function.
The function below calculates a spline curve defined by six points
I need to calculate the 1st and second derivative of yt
Function 1: ytd1 = the 1st derivative of yt
Function 2: ytd2 = the 2nd derivative of yt
t= range from 0 to 1
Function:
b1=(1-t)^5
b2=5*t*(1-t)^4
b3=10*t^2 * (1-t)^3
b4=10*t^3 * (1-t)^2
b5=5*t^4 * (1-t)
b6=t^5
xt=(b1*px1)+(b2*px2)+(b3*px3)+(b4*px4)+(b5*px5)+(b6*px6)
yt=(b1*py1)+(b2*py2)+(b3*py3)+(b4*py4)+(b5*py5)+(b6*py6)
Sample inputs:
px1=0
px2=20
px3=40
px4=60
px5=80
px6=100
py1=0
py2=0
py3=0
py4=100
py5=100
py6=100
Select me ASAP to start working on this functon,i can deliver it within hours. I was a Math Graduate, before my Software Engineering Degree, so you can understand this is a simple task for me. Waiting for your +VE response.Thanks.-TUHIN