A résolu


Draw a '8' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '1' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '7' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '9' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '6' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '4' in a zero matrix!

environ 3 ans il y a

A résolu


Draw a '3' in a zero matrix!

environ 3 ans il y a

A résolu


Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?

environ 3 ans il y a

A résolu


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

environ 3 ans il y a

A résolu


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

environ 3 ans il y a

A résolu


Play with array Min-Max
An array is provided. For example, a= [ 2,1,11,4,5,13] Create an array from a like this way, out= [ 1,11,2,13,4,5] ➢ 1st take...

environ 3 ans il y a

A résolu


Extract the prime numbers
Given a list of elements, extract the prime numbers from that array.

environ 3 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ 3 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

environ 3 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 3 ans il y a

A résolu


Find alternating sum
Given an array, find alternating sum i.e. – y = x (1) – x (2) + x (3) – x (4) + x (5) - …

environ 3 ans il y a

A résolu


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

environ 3 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

environ 3 ans il y a