Navigation
Main Page
Random Page
Create a new Page
All Pages
Categories
Administration
File Management
Login/Logout
Language Selection
Your Profile
Create Account
Quick Search
Advanced Search »
Back
History
diff
'''diff'''('expression','variable','order') - Differentiate. If the 'order' is omitted, the first order derivative is assumed. The function is used to perform symbolic or numeric derivatives. It can be inserted by typing '''diff(''' or from the '''Function''' palette under '''Derivative''' template (this is simpler). Chose the '''Derivative''' template and insert in the 'variable' placeholder '''x '''and in the 'expression' placeholder '''x<sup>2</sup>'''. After that press '''CTRL+.''' (symbolic calculation). You should obtain this result: [image|deriv1|{UP}diff/deriv1.png] We could have defined the 'expression' '''f''' first in variable '''x''' and '''y''', for instance: [image|deriv1|{UP}diff/deriv2.png] and found the first derivatives over the variables (partial derivatives, actually): [image|deriv1|{UP}diff/deriv3.png] How to obtain the higher order derivatives? Press comma after the 'variable' and in the obtained placeholder insert the 'order' (integer). Here are the second derivatives: [image|deriv1|{UP}diff/deriv4.png] Here are mixed derivatives as well: [image|deriv1|{UP}diff/deriv5.png] Instead of an expression we could have defined a function and repeat the procedure: [image|deriv1|{UP}diff/deriv6.png] Numerical derivatives are found at the given values. For instance: [image|deriv1|{UP}diff/deriv7.png] Very important SMath feature is ability to find the '''derivatives''' over the '''elements of a vector (matrix)'''. Here is an example of finding Jacobi matrix and Jacobian: [image|deriv1|{UP}diff/deriv8.png]
ScrewTurn Wiki
version 2.0.37. Some of the icons created by
FamFamFam
.