Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
2 years 前
已解决
Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n.
Example
x= [ 1 2 3...
2 years 前
已解决
Interior angles
Find the sum of interior angles for polygon of x sides.
2 years 前
已解决
prime test 2
enter the only non prime,non composite number
0<=x<=pi?
Check whether the given angle is between zero and pi.
Return logical true or false.
2 years 前
已解决
Remove the positive integers.
Given array x (of integers), remove all the positive numbers and display ouput as y.
Example x=[1 -2 3 -4] , output is y=[-2 -...
Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man?
Give the name of that man, who, by popular believe, can ...
angle in regular polygon
Make a function which returns measure of interior angle in x-side regular polygon. x is as input.
Please pay attention, that 1 ...
Basic commands - rounding
make a function which will round to integer, which is nearer to zero.
Example
x=[-2.5 2];
y=[-2 2];
2 years 前
已解决
BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
Examp...