Risolto


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

quasi 3 anni fa

Risolto


means
Calculate the arithmetic, the geometric and the harmonic mean of a given vector (with positive elements) and return them in a ve...

quasi 3 anni fa

Risolto


The rabbit problem
Suppose a newly-born pair of rabbits, one male, one female, are put in a field. Rabbits are able to mate at the age of one month...

quasi 3 anni fa

Risolto


Sequence problem
find the nth term of the sequence: 790 1303 2033 ____ 4366 6095

quasi 3 anni fa

Risolto


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

quasi 3 anni fa

Risolto


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

quasi 3 anni fa

Risolto


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

quasi 3 anni fa

Risolto


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

quasi 3 anni fa

Risolto


Square root of a number
Write a code that will output the square root of x.

quasi 3 anni fa

Risolto


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

quasi 3 anni fa

Risolto


Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

quasi 3 anni fa

Risolto


Determine if a Given Number is a Triangle Number
*Description:* Determine if the elements of an input array are triangle numbers and return the result as an array with the sa...

quasi 3 anni fa

Risolto


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

quasi 3 anni fa

Risolto


If-then-else
Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

quasi 3 anni fa

Risolto


factorial of a number x
Factorial of a number x

quasi 3 anni fa

Risolto


Replace May with April
For instance, if the input is input_str = 'The flowers may bloom in April'; then the output is output_str = 'The flo...

quasi 3 anni fa

Risolto


Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

quasi 3 anni fa

Risolto


Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

quasi 3 anni fa

Risolto


Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...

quasi 3 anni fa

Risolto


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

quasi 3 anni fa

Risolto


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

quasi 3 anni fa

Risolto


Diagonal Prod

quasi 3 anni fa

Risolto


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

quasi 3 anni fa

Risolto


Efficiency of a single phase Transformer
Calculate the efficiency of a single phase transformer whose KVA rating is A KVA, loading factor x,power factor p,full load copp...

quasi 3 anni fa

Risolto


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

quasi 3 anni fa

Risolto


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

quasi 3 anni fa

Risolto


Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]

quasi 3 anni fa

Risolto


Find Logic 5

quasi 3 anni fa

Risolto


Find Logic 2

quasi 3 anni fa

Risolto


Find Logic 24

quasi 3 anni fa

Carica altro