Solved


Pi Digit Probability
Assume that the next digit of pi constant is determined by the historical digit distribution. What is the probability of next di...

3 years ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

3 years ago

Solved


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

3 years ago

Solved


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

3 years ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

3 years ago

Solved


radius of a spherical planet
You just measured its surface area, that is the input.

3 years ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

3 years ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

3 years ago

Solved


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

3 years ago

Solved


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

3 years ago

Solved


Check that number is whole number
Check that number is whole number Say x=15, then answer is 1. x=15.2 , then answer is 0. http://en.wikipedia.org/wiki/Whole_numb...

3 years ago

Solved


MATLAB Basic: rounding II
Do rounding nearest integer. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 9

3 years ago

Solved


imaginary

3 years ago

Solved


Real

3 years ago

Solved


NaN

3 years ago

Solved


How to Concatenate two strings?
How to Concatenate two strings?

3 years ago

Solved


Taxicab distance

3 years ago

Solved


Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

3 years ago

Solved


0<=x<=pi?
Check whether the given angle is between zero and pi. Return logical true or false.

3 years ago

Solved


Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

3 years ago

Solved


Binary Coder
Take an input number and print the binary value of this number.

3 years ago

Solved


Travelling Salesman Problem (TSP)
Find a short way through given points. This is the travelling salesman problem. But the solution should be a fast and small func...

3 years ago

Solved


length of a vector
Find twice the length of a given vector.

3 years ago

Solved


Generate pi using logarithm
Generate pi using logarithm

3 years ago

Solved


STOP that car!!!
The maximum allowed speed for this road is 100. Find the cars that didn't observe the speed limit Arrest and fine them!!!

3 years ago

Solved


Energy of a photon
*&#9883 &#9762 &#9883 &#9762 &#9883 &#9762 &#9883* Given the frequency F of a photon in giga hertz. Find energy E of this...

3 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

3 years ago

Solved


Converts numbers into characters
Converts numbers into characters

3 years ago

Load more