Risolto


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

oltre un anno fa

Risolto


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

oltre un anno fa

Risolto


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Input...

oltre un anno fa

Risolto


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

oltre un anno fa

Risolto


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

oltre un anno fa

Risolto


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

oltre un anno fa

Risolto


Find max
Find the maximum value of a given vector or matrix.

oltre un anno fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

oltre un anno fa

Risolto


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

oltre un anno fa

Risolto


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

oltre un anno fa

Risolto


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

oltre un anno fa

Risolto


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

oltre un anno fa

Risolto


Convert radians to degrees
Given input in radians, output to degrees

oltre un anno fa

Risolto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

oltre un anno fa

Risolto


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

oltre un anno fa

Risolto


Spherical Volume
Calculate the volume of a sphere.

oltre un anno fa

Risolto


Laws of motion 6

oltre un anno fa

Risolto


Laws of motion 2

oltre un anno fa

Risolto


Total energy

oltre un anno fa

Risolto


Potential energy calculation

oltre un anno fa

Risolto


Laws of motion 5
Calculate the force is u are given mass and acceleration.

oltre un anno fa

Risolto


Kinetic energy calculation

oltre un anno fa

Risolto


Laws of motion 1

oltre un anno fa

Risolto


Converts numbers into characters
Converts numbers into characters

oltre un anno fa

Risolto


the average value of the elements
Calculate the average value of the elements in the array

oltre un anno fa

Risolto


Find the max element of the array
Find the max element of the array

oltre un anno fa

Risolto


Double all elements in the array
Duplicate all elements in the array

oltre un anno fa

Risolto


to the 2 all elements
to the 2 all elements

oltre un anno fa

Risolto


calculate the length of matrix
input 1 array, calculate the length

oltre un anno fa

Risolto


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

oltre un anno fa

Carica altro