Solved

Column Removal (★★★)

(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

28 días ago

Solved

Swap the first and last columns (★★)

(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

28 días ago

Solved

Select every other element of a vector (★★)

(copy of prob 6) Write a function which returns every other element of the vector passed in. That is, it returns the all odd-...

28 días ago

Solved

Sum of elements in a vector (★)

(copy of Prob. 3) Find the sum of all the numbers of the input vector x. Input x = [1 2 3 5] Output y is 11 <> ...

29 días ago

Solved

Sum of elements of a vector (★★★)

Given any vector x = [x1, x2, x3, ... xn], compute the sum of its elements. Thus, if x = [ 1 3 -2 5 ], then the sum of its el...

29 días ago

Solved

Magnitude of a vector (★★★)

Given a vector x with values [ x1, x2, x3, ..., xn ], compute the magnitude (or length) of the vector which is given by <<htt...

29 días ago

Solved

Volume of Equilateral Triangle Prism

Find volume of equilateral triangle prism x = side of triangle l = length of prism

29 días ago

Solved

Kelvin to Fahrenheit

You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html x is kelvi...

29 días ago

Solved

Convert Angstrom to Meters

Write a code that converts the angstrom unit to meters.(A is angstrom and m is meters.)

29 días ago

Solved

Given A4 sizes find A3's long side

I think you know the relation between A3 and A4 paper so givens are sides of A4 x1=long side of A4 y1=short side of A4 y2 is ...

29 días ago

Solved

Fill a zeros matrix (★★★★★)

(Copy of Problem 830) The aim is to fill an array of all zeros given a numerical value and the index of row and columns for t...

alrededor de 1 mes ago

Solved

*Prime number check 2 (in construction)

Another way to see if a number is prime is to count the number of factors. For example, the number 4 has 2 factors, [ 2 4 ]...

alrededor de 1 mes ago

Solved

Median computation (★★★)

See easy edition of this problem. However, now you must compute the median of any real-valued vector without using the in-built...

alrededor de 1 mes ago

Solved

Median computation (★)

Given a vector of values, compute the median. The median is defined as the middle value in a set of *sorted* data. Thus, if ...

alrededor de 1 mes ago

Solved

Variance computation (★)

Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

alrededor de 1 mes ago

Solved

Variance computation (★★★)

Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

alrededor de 1 mes ago

Solved

Mo money, mo math #2! (★★★)

(adapted from Prob 9 Cody team) You have a matrix for which each row is a person and the columns represent the number of quar...

alrededor de 1 mes ago

Solved

Approximate functions 1 (★★★)

Compute the following sum for any given x and positive integer n. <<https://i.imgur.com/eUwXdSE.gif>> <> Here m! denote...

alrededor de 1 mes ago

Solved

Prime number check (★★)

One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

alrededor de 1 mes ago

Solved

Function 1 (★)

Compute the value of <<https://i.imgur.com/AxKWLmE.gif>> for any given positive x.

alrededor de 1 mes ago

Solved

Sum of terms in a series 1 (★★★)

Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...

alrededor de 1 mes ago

Solved

Mo money, mo math 1! (★★★)

(adapted from Prob 9 Cody team) You have a vector where the elements represent the number of $20 bills, $10 bills, $5 bills, ...

alrededor de 1 mes ago

Solved

Times 3

Try out this test problem first. Given the variable x as your input, multiply it by three and put the result in y. Example...

alrededor de 1 mes ago