Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...
4 years 前
已解决
Electrical Diode Current Calculation
In engineering, there is not always a single equation that describes a phenomenon accurately enough to be applied in all instanc...
4 years 前
已解决
An Ohm's Law Calculator
*BACKGROUND / MOTIVATION:*
Many important observations in math and science can be described by short, but powerful, equations...
4 years 前
已解决
SatCom #4: Satellite Orbit Altitude
Satellite and Space Engineering - Problem #4
This is part of a series of problems looking at topics in satellite and space comm...
4 years 前
已解决
SatCom #3: Free Space Path Loss
*Satellite and Space Engineering - Problem #3*
_This is part of a series of problems looking at topics in satellite and space...
Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have
a = [1 2 2 2 1 ...