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...
8年弱 前
解決済み
Make visible max values
Make visible maximum values of rows
input = [1 2 3 4 5;
6 9 8 2 1;
2 1 4 5 8;
1 9 7 9 2];
...
Unusual Concatenations
The sum of the squares of certain unusual integers is equal to the concatenation of their individual digits.
For example:
...
8年弱 前
解決済み
Create a New_Word
The output of the function is a new word created from the word entered into the function. The new word is created by deleting th...
8年弱 前
解決済み
cos for boss?
a programmer had too much coffee and his boss needs cos(alpha+beta) correctly, especially when alpha or beta are close to pi/2 a...
8年弱 前
解決済み
The sum of individual numbers...
Well this one is taking a number and then summing the individual parts till you reach a value of 1, 2, 3, 4, 5, 6, 7, 8, 9, or 0...
Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.
8年弱 前
解決済み
Calculate the h-index
H-index is a powerful tool for quantifying the scientific contribution of a researcher. H-index is defined as follows (source - ...
Determinants
Given a square matrix(A), find the determinant(d).
For example:
A = [1,3;4,5]
d = 1*5-4*3 = -7
8年弱 前
解決済み
Stress-Strain Properties - 2
The resilience of a material is its ability to resist permanent (or plastic) deformation. The resilience coincides with the elas...
8年弱 前
解決済み
Analyze observation data
Suppose you have the following data (A,B,C) in three-column format.
A B C
--------------------------
t=1 ...
8年弱 前
解決済み
calculate PI without using pi function
There are many methods to get the pi(Ratio of circumference to diameter).
You should get pi without using the pi function in M...
8年弱 前
解決済み
0<=x<=pi?
Check whether the given angle is between zero and pi.
Return logical true or false.
Calories in a slice of pizza?
The total calories C in a pizza is printed on its box. You know the angle A (degrees) of the slice you placed on your plate. Ple...
8年弱 前
解決済み
Reverse digits of a number
Reverse digits of a number.
For example, return *321* for the input *123* .
The left-hand zeros can be discarded. For exam...
8年弱 前
解決済み
Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...
8年弱 前
解決済み
Find max prime number
Given integer number n. Find the max prime number (mpn) that smaller than or equal to n.
Example:
n = 10
--> mpn = 7