Easy Sequences 3: Prime 44-number Squares
The positive integers 62 and 238 are related. Their squares (3844 and 56,644) both end in '44'. In fact, 62 and 238 are the 3rd ...
Total resistance of resistors in parallel
What is the total resistance of a number of resistors in parallel?
A vector R contains the resistances (in Ohm) of n resistors,...
4年以上 前
解決済み
Total resistance of resistors in series
What is the total resistance of a number of resistors in series?
A vector R contains the resistances (in Ohm) of n resistors, w...
UICBioE240 problem 1.12
The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...
4年以上 前
解決済み
Leftovers? Again?!
I am thinking of a positive number X. To determine what number I am thinking of, I will give you two 1xN vectors. The first ve...
4年以上 前
解決済み
Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|.
Example:
Input: a = 4; b = 7; c ...
4年以上 前
解決済み
Create a vector
Create a vector from 0 to n by intervals of 2.
4年以上 前
解決済み
make histogram
You probably know the function hist(x,n) to get the histogram. Now try to write the function yourself!
For the cheaters wanting...
4年以上 前
解決済み
A little bit of luck needed
This one may require a little bit of guess work, but it is possible.
Hints:
- The same solution might fail the tests once and ...
4年以上 前
解決済み
ICFP2021 Hole-In-Wall: Calculate Score
The ICFP held its annual 3-day contest in July 2021 with Hole-In-Wall. Contest Specification.
The contest folds the figure in R...
4年以上 前
解決済み
Which Prime
Given two prime numbers, specify the relation between them i.e. -
'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'