Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...
約6年 前
解決済み
Calculate Inner Product
Given two input matrices, |x| and |y|, check if their inner dimensions match.
* If they match, create an output variable |z|...
約6年 前
解決済み
Solve a System of Linear Equations
*Example*:
If a system of linear equations in _x₁_ and _x₂_ is:
2 _x₁_ + _x₂_ = 2
_x₁...
約6年 前
解決済み
Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...
約6年 前
解決済み
another bullseye
create matrix like below --
for x=2,
y=[1 1 1 1 1;
1 2 2 2 1;
1 2 3 2...
Add 3 numbers
In this problem, you have to add three numbers a, b and c.
Give output d = add(a,b,c)
7年弱 前
解決済み
Angle between two vectors
Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...
7年弱 前
解決済み
UICBioE240 problem 1.7
Find the other two angles of a right triangle given the two of the sides.
So if A = [1 1]
B = [45 45]
約7年 前
解決済み
Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>.
Note that the solution is rounded down to 5 decima...
Vector LCM
* Find Least Common Multiple of a given vector.
* Need general solution as the test suite will be expanded.
* Function Templa...
約7年 前
解決済み
Are you in XY plane?
Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0.
Example...
約7年 前
解決済み
Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...
Nth root of a number
Given an input and a number N, find the Nth root of the number(s)
約7年 前
解決済み
Archimedes principle
According to Archimedes principle, the buoyancy force is equal to the weight of fluid displaced by the submerged portion of an o...
Find the outlier in a set of samples
Given an array x of numbers. Assumed that this array has one outlier. Find the position p and the value v of the outlier in this...