Sharedsupport / 2016-02-09-185147-octave-symbolic.sagewsOpen in CoCalc
Examples for support purposes...
%octave

pkg load symbolic
syms x
f = sin(x)^2;
diff(f)
OctSymPy v2.2.2: this is free software without warranty, see source. Initializing communication with SymPy using a popen2() pipe. Some output from the Python subprocess (pid 22589) might appear next. Python 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> >>> OctSymPy: Communication established. SymPy v0.7.6.1. ans = (sym) 2⋅sin(x)⋅cos(x)
# by the way, in sage:
diff(sin(x)^2, x)
2*cos(x)*sin(x)