To differentiate the function v(t) = v0 * (1-(t/y).^4).^2 with t = 20, y = 50, and v0 = 9.7 in Matlab, you can use the symbolic differentiation feature provided by the Symbolic Math Toolbox.
Here's the code to differentiate v(t):
main.m165 chars4 lines
Then, to evaluate diff_v at t = 20, y = 50, and v0 = 9.7, you can substitute these values into diff_v using the subs() function:
main.m49 chars2 lines
This will give you the value of the derivative of v(t) with respect to t at t = 20, y = 50, and v0 = 9.7.
gistlibby LogSnag