Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 370 Bytes
% Basic arithmetic operations
x = 100;
a = x + 100;
b = x - 110;
c = x * 400;
d = x / 50;
% Change value of previously defined variable like:
x = 5;
% Powers
y = x^5;
% SquareRoot
e = sqrt(x);
f = sqrt(16);
% Logarithmic Operations
g = log(105);
h = log10(105);
i = log10(pi);
j = log(-1);
% Trigonometric Ratios
boss = pi;
k = sin(4*boss/3);
l = tan(boss*boss);