Kernel: Octave
Octave 7.1.0 on CoCalc Ubuntu 20.04
In [2]:
ans = 7.1.0
In [3]:
In [4]:
In [5]:
In [6]:
ans = 46
In [7]:
ans =
8 6 -2
12 9 -3
16 12 -4
In [8]:
x =
1.0179 0.7467 0.6404
0.6341 0.4800 0.4915
0.8930 0.6696 0.6459
In [9]:
In [10]:
In [11]:
In [12]:
Symbolic pkg v2.9.0: /usr/local/lib/python3.8/dist-packages/sympy/__init__.py:672: SymPyDeprecationWarning:
importing sympy.core.compatibility with 'from sympy import *' has been
deprecated since SymPy 1.6. Use import sympy.core.compatibility
instead. See https://github.com/sympy/sympy/issues/18245 for more
info.
self.Warn(
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 12, in octoutput_drv
File "<stdin>", line 54, in octoutput
File "<stdin>", line 55, in octoutput
File "/usr/local/lib/python3.8/dist-packages/sympy/__init__.py", line 677, in __getattr__
return getattr(self.mod, name)
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
In [0]:
In [0]:
In [0]:
In [0]:
This plot shows the famous 3D sombrero.
A quadratic meshgrid of and coordinates is evaluated via and the value is then the value plotted along the third dimension.
Reference: 3d plots
In [14]:
In [15]:
This draws the set of points, where the given equation is satisfied. Here, it shows a tilted ellipse.
Reference: ezplot
In [16]:
Imagine you want to evaluate a binary function .
For evaluating it in vectorized notation, you need a grid for the cartesian product of all and .
In [13]:
ans =
0 1 2 3
2 3 4 5
4 5 6 7
6 7 8 9
8 9 10 11
Octave's ODE PKG in Action
In [0]:
In [0]:
In [0]:
In [0]:
You can run numerical optimizations via the optim package.
In this example we minimize the classical Rosenbrock function in 20 dimensions using BFGS.
In [0]:
testing java support
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]: