Limitted access. Reguest membership
or login to this link first if you are already a member
diff(function,x) differentiates function with respect to the symbolic variable x. The main variable of function is used if x is not provided. Functions defined by user programs can often be handled as well.
You can easily plot the result of differentiation as:
Let us consider few more example skipping the print statement: