Solved


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

etwa 2 Monate ago

Solved


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

etwa 2 Monate ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

etwa 2 Monate ago

Solved


delta x

etwa 2 Monate ago

Solved


Row sum

etwa 2 Monate ago

Solved


Factorial

etwa 2 Monate ago

Solved


step function

etwa 2 Monate ago

Solved


Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F. Examples: Input F = 90 Output C is 32.22 I...

etwa 2 Monate ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

etwa 2 Monate ago

Solved


Real

etwa 2 Monate ago

Solved


Nth root
Nth root of a number x

etwa 2 Monate ago

Solved


area

etwa 2 Monate ago

Solved


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

etwa 2 Monate ago

Solved


Bottles of beer
Given an input number representing the number of bottles of beer on the wall, output how many are left if you take one down and ...

etwa 2 Monate ago

Solved


Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

etwa 2 Monate ago

Solved


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

etwa 2 Monate ago

Solved


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

etwa 2 Monate ago

Solved


Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

etwa 2 Monate ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

etwa 2 Monate ago

Solved


Lambert's W
Matlab cody does not support lambertw. Try to create a lambert's w function yourself. Lambert's W is the function that solves...

etwa 2 Monate ago

Solved


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

etwa 2 Monate ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

etwa 2 Monate ago

Solved


Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

etwa 2 Monate ago

Solved


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

etwa 2 Monate ago

Solved


Square root of a number
Write a code that will output the square root of x.

etwa 2 Monate ago

Solved


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

etwa 2 Monate ago

Solved


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?

etwa 2 Monate ago

Solved


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

etwa 2 Monate ago

Solved


Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

etwa 2 Monate ago

Solved


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

etwa 2 Monate ago

Load more