Solved

Easy Sequences 2: Trigonometric function with integral input and output

The function 'F', defined as: , will always return an integer if the input is a natural number (in radian...

8 Monate ago

Solved

Stress-Strain Properties - 7

The toughness of a material is technically defined as the plastic strain energy absorbed by the material (the olive region in th...

9 Monate ago

Solved

Stress-Strain Properties - 6

The total energy absorbed by a material up to failure in a tensile test is termed the absorbed strain energy. With respect to th...

9 Monate ago

Solved

Stress-Strain Properties - 5

Similar to the previous problem, materials may be characterized by their stiffness-to-weight ratio, which is the elastic modulus...

9 Monate ago

Solved

Stress-Strain Properties - 4

A common measure of the ability of a material to carry load per unit mass is termed strength-to-weight ratio and is calculated b...

9 Monate ago

Solved

Stress-Strain Properties - 3

A brittle material will not exhibit a yield point. In other words, the yield point and failure point coincide. In such cases, th...

9 Monate ago

Solved

Stress-Strain Properties - 2

The resilience of a material is its ability to resist permanent (or plastic) deformation. The resilience coincides with the elas...

9 Monate ago

Solved

Stress-Strain Properties - 1

This is the first in a series of problems regarding mechanics of materials, in particular, material properties drawn from stress...

9 Monate ago

Solved

Young's modulus

Given a value of <http://en.wikipedia.org/wiki/Young_modulus Young's modulus> (Y) expressed on MegaPascal, convert it to the uni...

9 Monate ago

Solved

Determine whether a number is unprimeable

The number 204 is unprimeable because no single digit can be changed to make it prime. In contrast, the number 207 is not unprim...

11 Monate ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

12 Monate ago

Solved

Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

12 Monate ago

Solved

Nearest Numbers

Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

12 Monate ago

Solved

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

12 Monate ago

Solved

Remove all the words that end with "ain"

Given the string s1, return the string s2 with the target characters removed. For example, given s1 = 'the main event' your ...

12 Monate ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

12 Monate ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

12 Monate ago

Solved

Find relatively common elements in matrix rows

You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

12 Monate ago

Solved

Pascal's Triangle

Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

12 Monate ago

Solved

Return a list sorted by number of occurrences

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

12 Monate ago