PDEtools
diff_table
set up a convenient representation for a function or expression and its derivatives
Calling Sequence
Parameters
Description
Examples
diff_table(expr)
expr
-
any valid Maple expression of type algebraic, typically an unknown function - say u(t)
The diff_table command is basically the inverse facility of PDEtools[declare]: it permits entering (input) expressions and their derivatives using compact mathematical notation without using macros or aliases. The notation implemented by diff_table is the jet notation also used by the DifferentialAlgebra package and represents a remarkable saving in redundant typing on input. diff_table also works with anticommutative variables set using the Physics package.
with⁡PDEtools,diff_table:
Let U and V be the "differentiation tables" of u⁡x,y,t and v⁡x,y,t, that is, handy representations for these objects and their derivatives.
U≔diff_table⁡u⁡x,y,t:
V≔diff_table⁡v⁡x,y,t:
You can now input the functions u⁡x,y,t or v⁡x,y,t or any of its partial derivatives using mathematical notation directly, resulting in the expected expression on output.
e1≔Uy,t+Vx,x+Ux⁢Uy+U⁢Ux,y
e1≔u⁡x,y,t⁢∂2∂x∂yu⁡x,y,t+∂∂xu⁡x,y,t⁢∂∂yu⁡x,y,t+∂2∂t∂yu⁡x,y,t+∂2∂x2v⁡x,y,t
diff_table can be used simultaneously with PDEtools[declare] so that both input and output are simplified while the actual contents of the expressions generated is the standard expected one. For example, calling declare with u⁡x,y,t,v⁡x,y,t,
PDEtoolsdeclare⁡u⁡x,y,t,v⁡x,y,t
u⁡x,y,t⁢will now be displayed as⁢u
v⁡x,y,t⁢will now be displayed as⁢v
the output corresponding to input entered using V,U is displayed using the same mathematical notation
e2≔Vt+Ux+Ux,x,y+Ux⁢V+U⁢Vx
e2≔u⁢vx+ux⁢v+ux+ux,x,y+vt
The actual contents of this expression is the expected one. (See lprint and show.)
lprint⁡
u(x,y,t)*diff(v(x,y,t),x)+diff(u(x,y,t),x)*v(x,y,t)+diff(u(x,y,t),x)+diff(diff(diff(u(x,y,t),x),x),y)+diff(v(x,y,t),t)
show
u⁢∂v∂x+∂u∂x⁢v+∂u∂x+∂3u∂x2∂y+∂v∂t
See Also
DEtools
lprint
PDEtools[declare]
Physics
Setup
Download Help Document