Community Profile

# CXD

### TJU

Last seen: alrededor de 1 mes hace Con actividad desde 2022

sqrt6661661161

Spoken Languages:
English
Professional Interests:
Mathematics and Optimization

Ver insignias

#### Content Feed

Ver por

Resuelto

How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

alrededor de 1 mes hace

Resuelto

Magic Matrix
We are all familiar with the concept of magic matrix. In a magic matrix, the summation of all rows, columns and both diagonals...

alrededor de 1 mes hace

Resuelto

Penny flipping - calculate winning probability (easy)
Two players are playing a fair penny flipping game. For each flip, the winner adds one penny from the loser's collection to his/...

alrededor de 1 mes hace

Resuelto

Design matrix from eigenvalues
Write a function that takes one input argument n and outputs a (n x n) square matrix A with the following properties: -A has...

alrededor de 1 mes hace

Resuelto

Simple Interest : Calculate annual simple interest rate
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

alrededor de 1 mes hace

Resuelto

Find the moving-average of the elements of a vector
Example Input vector: [1 2 3 4] output vector: 1st element=1/1, 2nd element=(1+2)/2, 3rd element=(1+2+3)/3, 4th element=(1+2...

alrededor de 1 mes hace

Resuelto

Compute a nested cube root
Consider the quantity . Write a function to compute without using loops or recursion.

alrededor de 1 mes hace

Resuelto

Sum the unitary divisors of a number
Cody Problems 1933 and 46898 deal with , the sum of divisors function. This problem deals with , the sum of unitary divisors fun...

alrededor de 2 meses hace

Resuelto

Count the unitary divisors of a number
Cody Problem 56738 asks for a list of the unitary divisors of a number. For this problem, write a function to count the unitary ...

alrededor de 2 meses hace

Resuelto

Matrix Generation.
if input n =1, generate a matrix y = [1]

alrededor de 2 meses hace

Resuelto

find the relation...
if given input is 1, output is 4. if input is 55, output is 3136.

alrededor de 2 meses hace

Resuelto

Find the area of a rectangle if length of the diagonal is given.
if length of a diagnonal in rectangle is 5. Its area is 12.

alrededor de 2 meses hace

Resuelto

3rd side of a Triangle
Given two sides of a triangle, find the minimum and maximum possible area of the triangle. the length of the third side has t...

alrededor de 2 meses hace

Resuelto

Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

alrededor de 2 meses hace

Resuelto

Triangle Coordinates
Given a natural number n, return two -element vectors, x and y, containing the coordinates of a triangular arrangement of points...

alrededor de 2 meses hace

Resuelto

Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

alrededor de 2 meses hace

Resuelto

Create block matrix of integers (j+k-1) - Part I
Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

alrededor de 2 meses hace

Resuelto

Construyendo matrices parte 2
Construye la siguiente matriz a partir de otros tres vectores/matrices. [ 1 8 15 3 3 3 3 2 9 16 3 3...

alrededor de 2 meses hace

Resuelto

Kurosu checker
The game of Kurosu is simple. A square grid contains cells that can be filled with either a 'X' or an 'O', similarly to a tic-ta...

alrededor de 2 meses hace

Resuelto

List unitary divisors of a number
A unitary divisor of a number divides and satisfies gcd(,) = 1. For example, 9 is a unitary divisor of 18 because gcd(9,2) = ...

alrededor de 2 meses hace

Resuelto

Dyck words
A Dyck word can be considered as a string of n X's and n Y's arranged to have at least as many X's in an initial segment of the ...

alrededor de 2 meses hace

Resuelto

Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

alrededor de 2 meses hace

Resuelto

Determine if vector has any zeroes
Return 1 if vector has atleast 1 zero, else return 0

alrededor de 2 meses hace

Resuelto

Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

alrededor de 2 meses hace

Resuelto

Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. Fun note: technically it...

alrededor de 2 meses hace

Resuelto

Multiply each matrix element by its row index and add its column index.
Return a matrix the same size as the input, multiply each element by its row index and add its column index. Example: x = [ 1 ...

alrededor de 2 meses hace

Resuelto

Check if a year is a leap year or not
Return 1 if a given year is a leap year or 0 if it is not

alrededor de 2 meses hace

Resuelto

Determine if a given input is even or odd?
Given an input, determine if even or odd.

alrededor de 2 meses hace

Resuelto

Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

4 meses hace

Resuelto

Fill the matrix - 1
Input is a column vector and n. n columns will be added to the left of the input column. The first value of the row is the s...

4 meses hace