| Hosted by CoCalc | Download
%octave 1+1
ans = 2
%octave pkg load symbolic syms x f = sin(x)^2; diff(f)
OctSymPy v2.2.1: this is free software without warranty, see source. Initializing communication with SymPy using a popen2() pipe. Some output from the Python subprocess (pid 9977) 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)
%octave int(f,x)
ans = (sym) x sin(x)⋅cos(x) ─ - ───────────── 2 2
%octave X=sym("x",[2,1])
X = (sym 2×1 matrix) ⎡x₁₁⎤ ⎢ ⎥ ⎣x₂₁⎦