Gamma Function
Evaluate the <http://en.wikipedia.org/wiki/Gamma_function/ Gamma Function>.
Gamma_val(0) = Inf
Gamma_val(1.2) = 0.9182
8年弱 前
解決済み
count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively.
For example:...
Integer Sequence - 1
Check the test suite to determine the relationship between input integer scalar and output integer scalar.
8年弱 前
解決済み
0, 2, 0, -2, 0, 2, 0, -2, ...
Generate the first n terms of a periodic sequence defined as
f(x) = 0, 2, 0, -2, 0, 2, 0, -2, ..., for x = 1, 2, 3, 4, 5, 6...
Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...
Increase monotonically
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
8年弱 前
解決済み
Make roundn function
Make roundn function using round.
x=0.55555
y=function(x,1)
y=1
y=function(x,2)
y=0.6
y=function(x,3)
...
8年弱 前
解決済み
find the relation...
if given input is 1,
output is 4.
if input is 55,
output is 3136.
8年弱 前
解決済み
Remove and Sort
Given a randomized array n, sort it and remove all odd integers.
n=5
y = [2 4]