Harmonic series counting
The function takes a positive limit as input,
And counts how many terms must be summed in the harmonic series:
1/1, 1/2, 1/3, ...
Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...
3ヶ月 前
解決済み
Polygon Interior Angle Sum
Given the number of sides of a regular polygon, find the sum of interior angles.
Return 0 for input for which regular polygon a...
3ヶ月 前
解決済み
Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a
scalar threshold value, and return a vec...
3ヶ月 前
解決済み
Polynomial Evaluation
Create a routine that takes a list of coefficients of a polynomial in order of increasing powers of x; together with a value of ...
3ヶ月 前
解決済み
Test within tolerance
Given a vector of experimental data, D, and a vector of truth data, T, return FALSE if any +/- errors (D-T) are outside a given ...