Sharedtmp / 2018-02-09-octave-demo.ipynbOpen in CoCalc
Authors: John Jeng, Harald Schilly, William A. Stein
Views : 3
Description: tmp Documents for testing and dev of the share server

This is a demo

Consider a=x3a = x^3.

In [2]:
a = rand(5)
a = 0.267139 0.805561 0.069841 0.794689 0.110577 0.948424 0.701436 0.023144 0.560013 0.315021 0.768580 0.847153 0.036748 0.696519 0.831973 0.900292 0.407907 0.824416 0.087610 0.939947 0.202503 0.277016 0.222474 0.013010 0.746668
In [3]:
det(a)
ans = 0.041514
In [4]:
rref(a)
ans = 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1
In [5]:
v = [1 2 3 9 2 1]
v = 1 2 3 9 2 1
In [6]:
v' * v
ans = 1 2 3 9 2 1 2 4 6 18 4 2 3 6 9 27 6 3 9 18 27 81 18 9 2 4 6 18 4 2 1 2 3 9 2 1
In [7]:
v * v'
ans = 100
In [3]:
pkg load symbolic; syms x f = 2 * (cos(x) + sin(x)^2) f1 = diff(f, x)
f = (sym) 2 2⋅sin (x) + 2⋅cos(x) f1 = (sym) 4⋅sin(x)⋅cos(x) - 2⋅sin(x)