Solved

Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

1 year ago

Solved

How many digits are there?
Input(s) - any string Output(n) - number of digits within string s

1 year ago

Solved

Convert a vector into numbers
Suppose a vector x = [ 1 2 4 7] is given. You have to convert this vector into string number y = '1247'. Examples x = [ 1...

1 year ago

Solved

Add one raw in given matrix as shown in example
*Add one raw in given matrix as shown in example* A=[1 0;0 1]; X=[3 5]; Answer must be:[1 0; 0 1;3 5]

1 year ago

Solved

Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

1 year ago

Solved

Find out of matrix transpose Complex conjugate
Find out of matrix transpose Complex conjugate A=[2 3+i;1 4+i] Then answer must be [2.0000 1.0000; ...

1 year ago

Solved

Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

1 year ago

Solved

Sum of integers numbers
Sum of the numbers from 1 to 100

1 year ago

Solved

Find out sum of prime number till given number
Find out sum of prime number till given number Example, if number is 10, then answer must be 17.

1 year ago

Solved

Find out value of polynomial at different value.
Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

1 year ago

Solved

Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

1 year ago

Solved

Solve Linear equations
Solve Linear equations Example: x+y=2 and x+2y=3, then x and y equal to 1.

1 year ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.
given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

1 year ago

Solved

Help the Patriots get to the Super Bowl
Given a football by the Patriots, return it to them with 2 psi less air in it. (The original psi is passed as a number to the...

1 year ago

Solved

Evaluate Polynomial
Given a polynomial equation coefficients in a vector p, you have to return its value at x. Example: For inputs p and x ...

1 year ago

Solved

Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

1 year ago

Solved

Reverse Calculator
Use this reverse calculator and give correct output Its simple, In my Reverse calculator if you press 0 it will be considered...

1 year ago

Solved

counting groups!
This problem is about counting groups. Example If you have x: x = [0.8 0.8 0.8 0.3 0.3 0.4 0.5 0.6 0.6 0.9] then a...

1 year ago

Solved

Implement a counter
Write a function that returns a function that counts the number of times it is invoked. Example: >> h = counter; >> h() ...

1 year ago

Solved

The Dark Side of the Die
It is well-known that opposite sides of a classic hexahedral die add to 7. Given a vector of dice rolls, calculate the sum of th...

1 year ago

Solved

Volume of a sphere given its surface area
You just measured its surface area, that is the input.

1 year ago

Solved

Find the index of nth maximum of a row vector of real numbers
Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

1 year ago

Solved

Remove the middle element from a vector
Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...

1 year ago

Solved

Check if integer
Given a vector of elements, determine if each element is an integer and return true or false accordingly.

1 year ago

Solved

Power of n ?
Determine if _x_ (positive integer) is a power of _n_, return true or false accordingly.

1 year ago

Solved

calculate RMS voltage
given peak to peak voltage, calculate rms voltage

1 year ago

Solved

Find Factrorial without using built-in function
A number is given, you have to find the factorial of the number without using built-in factroial function. You may use loops....

1 year ago

Solved

Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||. Hint: It is as simple as "ABC".

1 year ago

Solved

Change Vector Value
Change the element of the vector with respect to the element of the direction vector If the element of the direction vecto...

1 year ago

Solved

Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

1 year ago