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...