fulldiff.m

Symbolically computes full derivative wrt time using chain rule and time variables.
5.1K Downloads
Updated 26 Sep 2014

View License

Symbolically computes full time derivative of given function and time dependant variables. It's an expansion of the partial derivative functionality of DIFF. Chain rule application automatically creates necessary higher order derivatives. Only base dependent variable need to be input, eg {x y}, dx and dy, etc. are assumed time dependant and d2x and d2y are created if required. This is motivated by the combination of partial derivative and full derivative required to compute Lagrange?s equations of motion.

Cite As

Timothy Jorris (2024). fulldiff.m (https://www.mathworks.com/matlabcentral/fileexchange/7174-fulldiff-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: ddt, Dynamics Simulator for Kinematic Chains

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.2.0.0

Bug fixed. Code now looks for an exact match for variable names. Thank you Henrique.

1.1.0.0

Fixes the bug pointed out by Henrique.

1.0.0.0

Bug fixed identified by Bruno in review. Both methods of 3rd order derivative now match (3rd of 1st and 1st of 2nd).