Solved

Evaluate the logarithmic integral

The <https://en.wikipedia.org/wiki/Logarithmic_integral_function logarithmic integral> li(x) plays a role in number theory becau...

ongeveer 2 maanden ago

Solved

Construct finite difference approximations of derivatives

In solving a differential equation with a finite-difference method, one computes derivatives with various combinations of the fu...

ongeveer 2 maanden ago

Solved

Identify primorial primes

Cody Problems <https://www.mathworks.com/matlabcentral/cody/problems/46054-count-trailing-zeros-in-a-primorial 46054> and <https...

ongeveer 2 maanden ago

Solved

Find the last non-zero digit in a primorial

<https://www.mathworks.com/matlabcentral/cody/groups/2001/problems/45251 Cody Problem 45251> asked us to find the last non-zero ...

ongeveer 2 maanden ago

Solved

Count trailing zeros in a primorial

<https://www.mathworks.com/matlabcentral/cody/problems/44068-the-number-of-trailing-zero-digit-of-a-factorial Cody Problem 44068...

ongeveer 2 maanden ago

Solved

Construct a prime circle

A <https://mathworld.wolfram.com/PrimeCircle.html prime circle> is a circular arrangement of the numbers 1 to 2n such that pairs...

2 maanden ago

Solved

Identify Wagstaff primes

The numbers 3, 43, and 2731 are examples of <https://mathworld.wolfram.com/WagstaffPrime.html Wagstaff primes>. Write a func...

2 maanden ago

Solved

Determine whether a number is a cluster prime

A <https://mathworld.wolfram.com/ClusterPrime.html cluster prime> is an odd prime number _p_ such that all even numbers less tha...

2 maanden ago

Solved

Evaluate the generalized hypergeometric function

The <https://en.wikipedia.org/wiki/Generalized_hypergeometric_function generalized hypergeometric function> is defined as <<...

2 maanden ago

Solved

Solve a Weird Calculator puzzle

The September 2012 issue of GAMES Magazine had a Weird Calculator puzzle by Erich Friedman. In this puzzle, the calculator has o...

2 maanden ago

Solved

Count alternating permutations

In an alternating permutation of numbers 1 to n, the numbers are arranged so that they alternately increase and decrease. For ex...

2 maanden ago

Solved

Construct the Seidel-Entringer-Arnold triangle

Several problems in Cody ask us to construct part or all of triangles in which entries follow a pattern. Cody Problems <https://...

3 maanden ago

Solved

Let's create histogram data by yourself.

We'd like to create histogram data, which first column shows the data, and second column shows the frequency. input = [1, 2, ...

3 maanden ago

Solved

Evaluate the gamma function

The <https://mathworld.wolfram.com/GammaFunction.html gamma function> is a generalization of the factorial, and it appears in ma...

3 maanden ago

Solved

Find the zeros of the Bessel function of the first kind

<https://mathworld.wolfram.com/BesselFunctionoftheFirstKind.html Bessel functions> are important in many problems in mathematica...

3 maanden ago

Solved

Determine digits of the Copeland-Erdos constant

<https://www.mathworks.com/matlabcentral/cody/problems/1477-champernowne-constant/solutions/new Cody Problem 1477> asks us to de...

3 maanden ago

Solved

Compute Khinchin's constant

Khinchin's constant K_0 = 2.684542001... (also written "Khintchine's constant") has the amazing property that it is the limiting...

3 maanden ago

Solved

Compute the harmonic numbers

The nth <https://mathworld.wolfram.com/HarmonicNumber.html harmonic number> is defined as the sum of the reciprocals of the inte...

3 maanden ago

Solved

Evaluate the zeta function for complex arguments

<https://www.mathworks.com/matlabcentral/cody/problems/45988 Cody Problem 45988> involved computing the Riemann zeta function fo...

3 maanden ago

Solved

Evaluate the zeta function for real arguments > 1

The <https://en.wikipedia.org/wiki/Riemann_zeta_function Riemann zeta function> is important in number theory. In particular, th...

3 maanden ago

Solved

Evaluate the incomplete elliptic integrals

Elliptic integrals can be used to evaluate integrals whose integrands have the form R(x,sqrt(P(x))), where R(x,y) is a rational ...

3 maanden ago

Solved

Compute the perimeter of an ellipse

While the area of an ellipse is straightforward to compute, the perimeter (or circumference) is more complicated. The perimeter ...

3 maanden ago

Solved

Evaluate the Struve function

The <https://en.wikipedia.org/wiki/Struve_function Struve function> *H*_a(x) is a solution to an inhomogeneous form of Bessel's ...

3 maanden ago

Solved

Compute the nth Pythagorean prime

Pythagorean primes have the form p = 4n+1, where n is an integer, and they can be written as the sum of squares of two integers....

3 maanden ago

Solved

Set the Euler-Mascheroni constant with an identity using available MATLAB functions

Cody Problem <https://www.mathworks.com/matlabcentral/cody/problems/42826 42826> asked us to estimate the <https://en.wikipedia....

3 maanden ago

Solved

Compute the Bernoulli numbers

The <https://en.wikipedia.org/wiki/Bernoulli_number Bernoulli numbers> appear in several applications in number theory, includin...

3 maanden ago

Solved

Upstairs!

The stair has n steps. Every times you can up one or two steps. Give all the different solutions to upstairs. For example n ...

3 maanden ago

Solved

Satellite Orbit Altitude

*Satellite and Space Engineering - Problem #4* _This is part of a series of problems looking at topics in satellite and space...

4 maanden ago

Solved

Find the next binary palindrome number

We all know, a *palindrome* is nothing but a number or character which remains the same after the forward or backward alteration...

4 maanden ago

Solved

Calculate the volume of a cone

Calculate the volume of a cone given an array containing one column of radii and one column of the height of the cone. * Reme...

4 maanden ago