Solved

Matrix multiplication across rows

Given matrix m, return matrix n such that, rows of n are result of multiplication of the rows of the input matrix Example ...

2 years ago

Solved

An Ohm's Law Calculator

*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

2 years ago

Solved

check whether a number is a pentatope number

https://en.wikipedia.org/wiki/Pentatope_number

2 years ago

Solved

Determine whether a given point is inside or outside a polygon

A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of ...

2 years ago

Solved

Quadratic equation

given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

2 years ago

Solved

Check if integer is a prime number

Check if integer i is a prime number. Returns logical true '1' if it is.

2 years ago

Solved

Check if number is a square number

Test if integer i is a square number. Return logical true if it is.

2 years ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

2 years ago

Solved

Given a vector x, return vector y with all negative elements from the vector x.

Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

2 years ago

Solved

The length of the equal sides of an isoceles triangle is 'a'.For all the possible (integer) values of the remaining side,find the associated angles between the two equal sides.

the remaining side may have many possible values.only assume integer ones for simplicity.

2 years ago

Solved

An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?

area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the ...

2 years ago

Solved

create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last row's elements are the summation of the elements of all the other rows; where 'n' is the size of the input matrix 'x'.

for example x=[1 2 3;4 5 6;7 8 9] then y=[1 2 3 6; 4 5 6 15; 7 8 9 24; 12 15 18 45]

2 years ago

Solved

Check prime numbers

Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

2 years ago

Solved

Take a binary number as input,rearrange it in any manner such that its value is greater than the original one.output should be all the possible values in decimal.

a='001' output = [4,2]

2 years ago

Solved

Free passes for everyone!

_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

2 years ago

Solved

square a number twice with square root of 4/5

square a number twice with square root of 4/5

2 years ago

Solved

Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.

Submit your answer to this problem a multiple of 5 seconds after the hour. Your answer is irrelevant; the only thing that matte...

2 years ago