Reindex a vector (★★)
(copy of Prob. 676)
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX h...
5 years ago
Solved
Remove the row average (★★★)
(copy of Prob. 963)
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solut...
Plot Line Specifications
Create a line plot for function cos(x) where x is a vector of linearly spaced values going from 0 to input N with an increment o...
5 years ago
Solved
Create times-tables (★★★)
(copy of prob 33)
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 ti...
5 years ago
Solved
Find the centre of an arc and its radius
Given two points on an arc (x0,y0) and (x1,y1) and the angle between them, alpha.
Return the centre of the circle and the rad...
Adjoint matrix
given a matrix a, find the adjoint matrix of a.
5 years ago
Solved
Area of Triangle with Oblique Coordinates
Find area of triangle given points p1, p2, and p3 where the y-axes is w degrees counter clockwise from the x-axes.
For exampl...
Approximate functions 1 (★★★)
Compute the following sum for any given x and positive integer n.
<<https://i.imgur.com/eUwXdSE.gif>>
<>
Here m! denote...