Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u.
https://en.wikipedia.org/wiki/Euclidean_distance
Example
x=[1 1]
result=sqrt(1^2+1^2...
6年弱 前
解決済み
Divide polynomial p1 by p2.
Divide polynomial p1 by p2 given as vectors. Return result q and r vectors which corresponds the quotient and remainder of divis...
center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...
6年弱 前
解決済み
Mechanical Advantage of a Gear Train
Calculate the mechanical advantage of a gear train.
The mechanical advantage of a gear couple is given by MA = T_o/T_i where ...
6年弱 前
解決済み
Find the biggest digit in a matrix
Write a function to find the biggest digit in a matrix;
input -> a matrix
output -> a digit
For example;
[12; 47;...
Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...
約6年 前
解決済み
Volume of Spherical Shell
In three-dimensional space, a spherical shell can be constructed from two concentric spheres. Determine the volume of a spheric...
約6年 前
解決済み
Perimeter of a quadrilateral
There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...