Solved

Read a Soroban Abacus

*Description* The Soroban is the name of the modern Japanese abacus. Information on reading a Soroban can be found <http://we...

3 days ago

Solved

Balanced Ternary Numbers: Easy as |, |-, |o

This problem concerns the so-called <http://en.wikipedia.org/wiki/Balanced_ternary balanced ternary> system for representing num...

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

4 days ago

Solved

Replace all zeros and NaNs in a matrix with the string 'error'

Given a numeric input matrix A, possibly containing some zero values and some NaNs, replace any occurrences of zero or NaN with ...

4 days ago

Solved

Remove NaNs and numbers adjacent to NaNs

The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

4 days ago

Solved

Vector Linear sum: (p1-m1)V1+(p2-m2)V2+...(pK-mk)Vk

Calculate the sum of a Vector times coefficients expressed as two strings. Example: Normal representation [ a b c ], [ p1 ...

4 days ago

Solved

Lunar Arithmetic (Multiplication)

<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit when adding and take ...

5 days ago

Solved

convert?

* Given a string containing a number followed by pounds or kgs, for example: * 'Billy lost 22 pounds in four weeks.' * 'Maria ...

6 days ago

Solved

Find out output of following expression

Find out output of following expression Q=2log10 x+cos π+√(5yz)+|x^2-y^2 |

7 days ago

Solved

Find all repeated numbers

For a given vector, find all numbers that repeated 2 times or more than 2 times. Example: A=[1 2 3 3 4 5 6 6 7] y=[3 ...

8 days ago

Solved

find number of times of occurrence of the most frequent number in a row vector

In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

9 days ago

Solved

Power supply: 230V to 115V

The problem is simple: we have a wall outlet which supplies 230V and an apparatus that requires 115V. Software is always chea...

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

10 days ago

Solved

Who is the baby and who is the daddy in this family?

Given an array of numbers that shows the characteristcs of all family members, find who is the baby and who is daddy in this fam...

10 days ago

Solved

function to compute root mean square of first nn positive odd integers

Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive ...

11 days ago

Solved

Raise each element to the power of its index in a matrix

In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

11 days ago

Solved

Capitalized string operations

Convert the input sentence to upper case and replace all vowels with an underscore ('_')

11 days ago

Solved

square a number twice with square root of 4/5

square a number twice with square root of 4/5

11 days ago

Solved

Find the index of nth maximum of a row vector of real numbers

Given a vector of real numbers x, find the index idx of _n_ th maximum value. If nth maximum occurs more than once, return the i...

11 days ago

Solved

Distance Between Points

Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

11 days ago

Solved

Finding sum of even numbers in a vector.

Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

11 days ago

Solved

Find the sum of all integers in a given matrix

Finding sum of all integers in a given matrix

11 days ago

Solved

Get the area of the square.

Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

11 days ago