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

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

2 years ago

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

*Description* Given _F_, a cell array whose first element is a function handle and subsequent elements are arguments, return ...

4 months ago

Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

5 months ago

Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

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

Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

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

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

Load more