Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Conversions between diff, D, and Physics[diff] - convert derivatives between the diff and D notations
Calling Sequence
convert(expr, diff)
convert(expr, D)
Parameters
expr
-
any valid Maple object
Description
The Physics package provides a framework for computing with commutative, anticommutative, and noncommutative objects at the same time. Accordingly, it is possible to differentiate with respect to anticommutative variables; the command used to perform these derivatives is Physics[diff] (herein referred to as diff).
convert/D and convert/diff are converter routines between the D and diff formats for representing derivatives. The equivalence for anticommutative high order derivatives written in the D format and diff format of the Physics package is as in:
Physics[diff](f(theta1,theta2),theta1,theta2) = D[1,2](f)(theta1,theta2);
where the derivative above should be interpreted as: first differentiate with respect to , then with respect to (or the opposite times ). Thus, in this case, the right hand side should not be interpreted as usual, that is, as a commutative higher order derivative.
Examples
Load the Physics package and set a prefix to identify anticommutative variables (see Setup for more information).
Consider a commutative function depending on commutative and anticommutative variables, and one higher order derivative of it.
Note in the above that the commutative differentiation variables are collected as a group to be applied first, then the anticommutative ones.
Physics:-diff(Physics:-diff(Physics:-diff(diff(diff(diff(f(x, y, z, theta1, theta2, theta3), x), y), z), theta1), theta2), theta3)
Rewrite this expression in D notation, then convert back to diff notation.
See Also
convert/D, convert/diff, D, diff, Physics, Physics conventions, Physics examples, Setup
Download Help Document