문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


factorial of a number x
Factorial of a number x

거의 4년 전

문제를 풀었습니다


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

거의 4년 전

문제를 풀었습니다


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

거의 4년 전

문제를 풀었습니다


Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.

거의 4년 전

문제를 풀었습니다


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

거의 4년 전

문제를 풀었습니다


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero i...

거의 4년 전

문제를 풀었습니다


Find parts of a circle.
Given radius (r) of a circle find the diameter (d), circumference (c), an area (a).

거의 4년 전

문제를 풀었습니다


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

거의 4년 전

문제를 풀었습니다


Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

거의 4년 전

문제를 풀었습니다


Remove multiples of N
in the vector x remove all multiples of N. x = [1 2 3 4 5 6]; N = 2; Then y = [1 3 5];

거의 4년 전

문제를 풀었습니다


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

거의 4년 전

문제를 풀었습니다


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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?

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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?

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


Splitting Square - Problem the first

거의 4년 전

문제를 풀었습니다


Double Factorial
Return double factorial n(n-2)...(5)(3)(1), n>0, odd n!! = n(n-2)...(6)(4)(2), n>0, even 1 ...

거의 4년 전

문제를 풀었습니다


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

거의 4년 전

문제를 풀었습니다


Values in Array
How many values are in the array

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

거의 4년 전

문제를 풀었습니다


Convert from integer to binary
if true % decimalToBinaryVector(x) end

거의 4년 전

문제를 풀었습니다


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

거의 4년 전

문제를 풀었습니다


square root
Find the square root (y) of an input (x).

거의 4년 전

더 보기