Community Profile

Professional Interests: Monte-Carlo methods

Contact

Top 1% contributor

Given a function handle |f| an initial condition |y0| and a final time |tf|, solve numerically the differential equation dy...

Solve this!

0

3 years ago

A chunk of data is to be 'decompressed'. Input: * compressed: a row vector of uint8 values. This is the compressed data. ...

1

Write a function that estimates a d-dimensional integral to at least 1% relative precision. Inputs: * d: positive integer....

A recurrence relation is given by P(1) := 1 P(n+1) := exp(1) - (n+1)*P(n) Write a function that, given an integer |...

Input * |x0|, a real number greater than 0 Output * |I|, a numerical estimate of the integral x0 / I...

2 years ago

Inputs: * |f|: cell-array of function handles * |x|: column vector of |x| values * |y|: column vector of |y| values, same l...

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

12 months ago

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

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

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

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

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

Write a function to get unique elements of a vector faster than unique()! Input will be a vector (of integers or floating point ...

Check whether a point or multiple points is/are in a circle centered at point (x0, y0) with radius r. Points = [x, y]; c...

The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

Given a numeric matrix A and a logical array L of the same size as A, return a row vector S containing the columnwise sums of th...

Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

find root mean square of a signal x in less time than the test code and accurate to six places.

Give a random function that guess and return numbers from 1 to 6 exactly like the test suite .

Split a string into two strings, first string has all alphabetic letters, next string has all the rest, keep the order please, o...

Find the eigenvalues y for a given matrix x.

Sort the array so that they are sorted as if their value was a 5 digit number made from the first three and last two digits of t...

Example: in = magic(5) in = 17 24 1 8 15 23 5 7 14 16 4 6 13 20 ...

Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

It is required to replace all values in a vector that are multiples of 5 with NaN. Example: input: x = [1 2 5 12 10 7] ...

The stereotypical _decoder ring_ is remembered as a cereal box prize from the 1950s. Kids learned about cryptography by startin...

This is a stupid Cody challenge. You just have to *click "Submit" between 7 and 9 AM.* ... Greenwich Mean Time (GMT). To see ...

given a sentence, tell how much it touches. input : string output : how much it touches touching : a bilabial phoneme d...

Load more