Areas
Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...
5 years ago
Solved
Whole Number Concatenator
Write a function that concatenates whole numbers.
For example:
numcat(111,222) should return 111222
numcat(1,2,3,4,5) s...
5 years ago
Solved
Create logarithmically spaced values (★)
Given three numbers a,b,n with b>a, create a vector y with n logarithmic spaced values between 10^a and 10^b.
Thus, if a = -2, ...
5 years ago
Solved
Vector to 3-Column Matrix
Consider a vector *A* such as
A = [1 2 3 3 4 5 6]
Can you convert this vector to a three-column matrix like this:
...
5 years ago
Solved
Twin Primes
Twin primes are pairs of primes that are immediately next to each other (difference of two). The lesser of twin primes are 3, 5,...
5 years ago
Solved
Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...
5 years ago
Solved
Approximation of Pi (vector inputs)
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...
5 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...
How Many Months Until It's Today Again?
Given a particular date, calculate how many months must pass before that same day of the month occurs on the same day of the wee...
5 years ago
Solved
Check Digit - 01
The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique.
It used ...