Solved

Estimate π from certain values of the zeta function

Cody Problems <https://www.mathworks.com/matlabcentral/cody/problems/2908-approximation-of-pi 2908> and <https://www.mathworks.c...

3 mesi ago

Solved

Beads on a Necklace (Convex Hulls)

We may describe a <http://en.wikipedia.org/wiki/Convex_hull convex hull> as a rubber band stretched around a list of points. Som...

3 mesi ago

Solved

Dots in a Diamond

Return how many <http://en.wikipedia.org/wiki/Diamond_cubic Diamond Cubic> lattice grid points there are inside a 3D sphere of r...

3 mesi ago

Solved

Pairwise Euclidean Distance

Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

3 mesi ago

Solved

Vector parallel to plane?

Given the coefficients of the equation which defines a plane as follows: ax+by+cz=d, return a boolean indicating whether the 2n...

3 mesi ago

Solved

Points on a circle.

This problem is related to <url=http://www.mathworks.com/matlabcentral/cody/problems/1283-points-on-a-sphere>Problem 1283, Point...

3 mesi ago

Solved

Convert to Binary Coded Decimal

Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...

3 mesi ago

Solved

Find out the Gray Code for a Given Binary Number

Find out <http://en.wikipedia.org/wiki/Gray_code Gray Code> for a given binary number Example Binary input 1000 Gray ...

3 mesi ago

Solved

Binary Neighbourhood

Given a natural number reorder its binary form to create another number, closest to the given one. Examples: * 1 gives 2, ...

3 mesi ago

Solved

Digital Neighbourhood

Given a natural number reorder its digits to create another number, closest to the given one. Examples: * 123 gives 132, ...

3 mesi ago

Solved

Evened up (or not)

You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

3 mesi ago

Solved

Find the sines of an isosceles triangle when given its area and height

Find the sines of an isosceles triangle when given its area and height. For example, when A=60 and h=5, the result is [0.3752...

3 mesi ago