Resuelto

Draw a '2' in a zero matrix!

alrededor de 1 año hace

Resuelto

Draw a '1' in a zero matrix!

alrededor de 1 año hace

Resuelto

Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

alrededor de 1 año hace

Resuelto

Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

alrededor de 1 año hace

Resuelto

Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

alrededor de 1 año hace

Resuelto

Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

alrededor de 1 año hace

Resuelto

Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

alrededor de 1 año hace

Resuelto

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

alrededor de 1 año hace

Resuelto

Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

alrededor de 1 año hace

Resuelto

Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

alrededor de 1 año hace

Resuelto

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

alrededor de 1 año hace

Resuelto

Sum of series IX

alrededor de 1 año hace

Resuelto

Sum of series VIII

alrededor de 1 año hace

Resuelto

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?

alrededor de 1 año hace

Resuelto

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

alrededor de 1 año hace

Resuelto

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

alrededor de 1 año hace

Resuelto

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?

alrededor de 1 año hace

Resuelto

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

alrededor de 1 año hace

Resuelto

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

alrededor de 1 año hace

Resuelto

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

alrededor de 1 año hace

Resuelto

Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

alrededor de 1 año hace

Resuelto

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

alrededor de 1 año hace

Resuelto

Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

alrededor de 1 año hace

Resuelto

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

alrededor de 1 año hace

Resuelto

Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

alrededor de 1 año hace

Resuelto

Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...

alrededor de 1 año hace

Resuelto

Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

alrededor de 1 año hace

Resuelto

Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<https://imgur.com/x6hT6mm.png>> ...

alrededor de 1 año hace

Resuelto

Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

alrededor de 1 año hace

Resuelto

Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

alrededor de 1 año hace