Symbolic differentiation with a plot
Code: "symb_diff2.m". Programming language: Octave DMelt Version 1. Last modified: 12/09/2016. License: Free
https://datamelt.org/code/cache/symb_diff2_606.m
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


# This uses Octave language

syms x % symbolic x
y=diff(x*cos(x),x) %  differentiate x*cos(x)
plot2d('minx=0;maxx=10;miny=-1;maxy=10')  % make canvas
draw2d(y) % plot the result