解決済み


Cyclotomic polynomial
Given a Natural number (N), return the corresponding Cyclotomic Polynomial.

3年以上 前

解決済み


List the semiprimes
A semiprime number—or a 2-almost prime—is the product of two prime numbers. The numbers and are semiprimes, but and are not....

3年以上 前

解決済み


Remove TeX from string
Matlab’s TeX support in figure windows is great for displaying information in a visually appealing way. However, many of the TeX...

3年以上 前

解決済み


Inhomogenous Depth Scale Interpolation
I recently came across a dataset for physical ocean parameters such as temperature and salinity that provided data in the form o...

3年以上 前

解決済み


Convert double scalar to half-precision floating point (IEEE 754r)
Use MATLAB to convert a scalar double into a half-precision floating point. The return value should be a uint16. The half-pr...

4年弱 前

解決済み


Nuemann Polynomials
Return the coefficients of nth (n>=0) Nuemann polynomial, (a sequence in 1/t) as polynomials in alpha. The expected output is a...

4年弱 前

解決済み


Determine whether one vector is a subset of another
While bumbling through a pair of problems in the Number Theory group, I wrote code to determine whether a vector is a subset of ...

4年弱 前

解決済み


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

4年弱 前

解決済み


Consecutive Pairs of Smooth Numbers from Set of Prime Numbers
Given an input set of prime numbers (p), generate all pairs of consecutive smooth numbers (x) (see Stormer's Theorem). For exam...

4年弱 前

解決済み


Ridge regularized linear regression
Given a predictor data matrix of size , target variable vector of size and a shrinkage factor (scalar) (ridge regularization...

4年弱 前

解決済み


Sequence
Let S be a sequence of numbers Let Find for some , where and .

4年弱 前

解決済み


Momentum Calculation
A shopping cart of mass 'm1' is traveling with velocity 'u' and collides with a second shopping cart of mass 'm2.' The two shopp...

4年弱 前

解決済み


B-Zuckerman Numbers
Similar to my last problem (B_Harshad Numbers), B-Zuckerman Numbers are numbers that are divisable by the product of their digit...

4年弱 前

解決済み


Calculate Percentage
Given marks obtained and total marks, calculate the percentage.

4年弱 前

解決済み


Find distance travelled by an object starting from rest in time 't' and linear acceleration 'a' = 3t
Find distance travelled by an object starting from rest in time 't' with linear acceleration a = 3t. You are given time t as an ...

4年弱 前

解決済み


Aerodynamic load on a vehicle
Determine the aerodynamic load on a vehicle having aerodynamic drag coefficient , frontal area , moving at speed in an environm...

4年弱 前

解決済み


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

4年弱 前

解決済み


Sum of 2 numbers in array
Given an array and a target sum, return true if any 2 numbers in the array sum up to the given target sum. Both numbers cannot h...

4年弱 前

解決済み


Zigzag array
Given an vector of integers, rearrange the array so that the array looks like: [largest value, smallest value, 2nd largest valu...

4年弱 前

解決済み


Exponent of IEEE Single
Output the exponent bits as a uint8 of the IEEE representation of the single-typed 32-bit float input.

4年弱 前

解決済み


Invert a Logical Matrix
Given a logical matrix, invert it

4年弱 前

解決済み


Minimum number of children to distribute unequal cookie portions
A cruel parent wants to distribute N cookies such that it is impossible for every child to receive the same number of cookies. W...

4年弱 前

解決済み


encuentra el 'string', o serie, mas largo el un vector de 'strings'
Encuentra el 'string' mas largo. Si hay mas de uno del mismo tamano, elige el primero.

4年弱 前

解決済み


Sum of Cubes
Given n, find the sum of cubes of integers till n. For example, if n = 3, then answer is 1^3 + 2^3 + 3^3 = 36.

4年弱 前

解決済み


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

4年弱 前

解決済み


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

4年弱 前

解決済み


Calculate the surface area of a sphere
Given the radius of a sphere, calculate the surface area

4年弱 前

解決済み


Vector slither sort!
Sort a numeric vector in the following format: [largest value, smallest value, second largest value, second smallest value, etc...

4年弱 前

解決済み


Caesar Cipher Shift
Given a word and its encrypted version using the caesar cipher, find the shift used.

4年弱 前

解決済み


Mix it up!
Given an input string S, return a new string B, that is created by taking one character from the front and then the end iterativ...

4年弱 前

さらに読み込む