Solved

Sum the elements in either diagonal of a square matrix

Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

6 months ago

Solved

Back to basics 18 - justification

Covering some basic topics I haven't seen elsewhere on Cody. Given a string with extra spaces in front and/or in back, return...

6 months ago

Solved

Calculate Euler's phi function

Compute the Euler's phi function of a large integer. For more information about this topic please visit: <https://en.wikiped...

6 months ago

Solved

Ackermann's Function

Ackermann's Function is a recursive function that is not 'primitive recursive.' <http://en.wikipedia.org/wiki/Ackermann_fun...

6 months ago

Solved

Generalized Laguerre polynomials

Given an integer _n_ ≥ 0 and a scalar _a_, generate the _n_-th <http://en.wikipedia.org/wiki/Laguerre_polynomials#Generalized...

6 months ago

Solved

Legendre polynomials

Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Legendre_polynomials Legendre polynomial>. *Ex...

6 months ago

Solved

Radial Zernike polynomials

Given an integer _n_ ≥ 0 and an integer _m_ ≥ 0, generate the <http://en.wikipedia.org/wiki/Zernike_polynomials radial Zer...

6 months ago

Solved

Chebyshev polynomials of the 2nd Kind

Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Chebyshev_polynomials Chebyshev polynomial of the...

6 months ago

Solved

Chebyshev polynomials of the 1st Kind

Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Chebyshev_polynomials Chebyshev polynomial of the...

6 months ago

Solved

Transpose the Matrix

Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

6 months ago

Solved

Prime numbers between a , b.

Find all prime number between a & b (including a and b). example: a=100 b=120 y= [101 103 107 109 113]

6 months ago

Solved

Sum of diagonals

Compute the sum of diagonal elements of a square matrix and store the larger sum to s. Eg : a = [1 2 3; 2 3 4; 4 5 10] ...

6 months ago

Solved

Repetition of matrices

*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]* Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...

6 months ago

Solved

Calories in a slice of pizza?

The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...

6 months ago

Solved

0<=x<=pi?

Check whether the given angle is between zero and pi. Return logical true or false.

6 months ago

Solved

Remove the air bubbles from a vector

_*A reduced version of Problem 112*_ Given a column vector v, return a vector w in which all the zeros have "bubbled" to the ...

6 months ago

Solved

How many days in a month?

Return the number of days in a given month in 2017. If the input is not a valid month number, return -1. Examples: Input...

6 months ago

Solved

How many Integers?

Count the integers in a given vector |v|. You *must* use a loop to count each element separately. Examples: Input: v...

6 months ago

Solved

Laguerre polynomials

Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Laguerre_polynomials Laguerre polynomial>. *Ex...

6 months ago

Solved

Kepler's Equation

Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

6 months ago

Solved

Find the sum of the largest two elements in a vector

With this one, you have to find the two largest elements in a vector and output the sum of those numbers.

6 months ago

Solved

Find the index of the lowest number in a matrix

Take a matrix, and find the [row cal] index of the lowest number

6 months ago

Solved

Replace 0 indices in array with 1's

Take a incoming vector, and replace 0's with ones

6 months ago

Solved

Check if inputted variable is a string or a number

Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

6 months ago

Solved

Find the mean of two vectors

Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

6 months ago

Solved

Matrix Generation from Vector Multiplication

Output the matrix generated from multiplying two vectors together

6 months ago

Solved

Automatic String Editing

In this function, you will take an incoming string, and output the same string with each character one letter later in the alpha...

6 months ago

Solved

String Delimination and Outputting

In this problem, take an incoming string and deliminate the string based on spaces. Output the first string in between the space...

6 months ago