Resuelto


(Linear) Recurrence Equations - Generalised Fibonacci-like sequences
This problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...

casi 6 años hace

Resuelto


Ugly numbers - 02
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number. n.b. unlike the previous problem,trivi...

casi 6 años hace

Resuelto


Bell Triangle
Form the bell triangle upto nth bell number posotion; * if n=5 * y= [1 0 0 0 0; 1 2 0 0...

casi 6 años hace

Resuelto


Wythoff Sequence
Find the lower Wythoff sequence up to n. For more information, <https://oeis.org/A000201>

casi 6 años hace

Resuelto


Ugly numbers - 01
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number.

casi 6 años hace

Resuelto


Calculate the area of a circle
Given a circle of diameter x calculate its area

casi 6 años hace

Resuelto


Check if integer is a prime number
Check if integer i is a prime number. Returns logical true '1' if it is.

casi 6 años hace

Resuelto


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

casi 6 años hace

Resuelto


Check if number is a square number
Test if integer i is a square number. Return logical true if it is.

casi 6 años hace

Resuelto


Square
square root of x

casi 6 años hace

Resuelto


Find edges from a vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

casi 6 años hace

Resuelto


Find triangles from edge
First input is T, a Triplet list of indices -whom each row actually contains the three indices of a triangle vertices-. size(T) ...

casi 6 años hace

Resuelto


Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...

casi 6 años hace

Resuelto


Longest Collatz Sequence
Inspired by Projet Euler n°14. The Collatz iterative sequence (See Cody problem n° 2103 and 211) is defined for the set of po...

casi 6 años hace

Resuelto


Optimization of cylinder surface area
Optimization of a cylinder surface area. What are the best parameters (radius and height) to get the minimum cylinder surface a...

casi 6 años hace

Resuelto


Sum of a geometric series
Give the sum of the first 'n' terms of a geometric series, given 'a' as the first term and 'r' as the ratio.

casi 6 años hace

Resuelto


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

casi 6 años hace

Resuelto


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

casi 6 años hace

Resuelto


Double the next!
Given two numbers, m and n, find a matrix m x n where each element value is twice the value of the previous element. Starting fr...

casi 6 años hace

Resuelto


find nth even fibonacci number
1st even fibonacci number=2 ; 2nd even fibonacci number=8 ..

casi 6 años hace

Resuelto


Amicable numbers
Test whether two numbers are <https://en.wikipedia.org/wiki/Amicable_numbers amicable>, meaning that the sum of the proper divis...

casi 6 años hace

Resuelto


Find the max element of the array
Find the max element of the array

casi 6 años hace

Resuelto


the average value of the elements
Calculate the average value of the elements in the array

casi 6 años hace

Resuelto


Chào các bạn.
Cho 3 số. Tính tổng của chúng

casi 6 años hace

Resuelto


calculate the length of matrix
input 1 array, calculate the length

casi 6 años hace

Resuelto


easy problem
Find the last element of the array

casi 6 años hace

Resuelto


Find S-parameters of the circuit
Refer to <http://en.wikipedia.org/wiki/Scattering_parameters> for the information about the system of scattering parameters. ...

casi 6 años hace

Resuelto


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

casi 6 años hace

Resuelto


string comparision
compare two strings if both are same return 1 else return 0

casi 6 años hace

Resuelto


Surface Fit z(x,y)
Given three vectors x,y,z. Find four coefficients c = [cxx cxy cyy c00], such that z = cxx*x.^2+cxy*x.*y+cyy*y.^2+c00. For e...

casi 6 años hace

Cargar más