解決済み


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...

1年以上 前

解決済み


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 + ...

1年以上 前

解決済み


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...

1年以上 前

解決済み


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 =...

1年以上 前

解決済み


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 ...

1年以上 前

解決済み


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 ...

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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...

1年以上 前

解決済み


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...

1年以上 前

解決済み


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...

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


Spherical Volume
Calculate the volume of a sphere.

1年以上 前

解決済み


Laws of motion 6

1年以上 前

解決済み


Laws of motion 2

1年以上 前

解決済み


Total energy

1年以上 前

解決済み


Potential energy calculation

1年以上 前

解決済み


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

1年以上 前

解決済み


Kinetic energy calculation

1年以上 前

解決済み


Laws of motion 1

1年以上 前

解決済み


Converts numbers into characters
Converts numbers into characters

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

解決済み


to the 2 all elements
to the 2 all elements

1年以上 前

解決済み


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

1年以上 前

解決済み


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

1年以上 前

さらに読み込む