Community Profile

# William

Last seen: Today 2012 이후 활성

Semi-retired physicist with interests in numerical modeling and mathematics.

All

배지보기

#### Content Feed

보기 기준

해결됨

Make a function that returns its own character count
Write a function that returns a 128 element vector with an accurate inventory of the ASCII characters in its own function file. ...

5일 전

해결됨

Functionality 1
It's all about functionality. *Cheating is allowed but not required*

6일 전

해결됨

Travelling Salesman Problem (TSP)
Find a short way through given points. This is the travelling salesman problem. But the solution should be a fast and small func...

6일 전

해결됨

PACMAT - Ghosts Random; 3 Lives
The Classic PACMAN game brought to Cody. PACMAT Ghosts Random requires clearing the board of Yellow Dots while not bumping in...

8일 전

해결됨

Convert base 10 to base x (2-16)
Convert input number(s) (cell array of character arrays) in base 10 to base x (2 through 16). Output should be a cell of charact...

11일 전

해결됨

Partial sorting algorithm
Return the top k elements of an input vector. A comparison function compareFcn(m,n) is provided to compare individual elements o...

11일 전

해결됨

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

12일 전

해결됨

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....

12일 전

해결됨

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...

14일 전

해결됨

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...

15일 전

해결됨

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...

21일 전

해결됨

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...

27일 전

해결됨

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 ...

27일 전

해결됨

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...

약 1달 전

해결됨

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...

약 1달 전

해결됨

Can you Jump?
You have been provided with input array of integers. You start with initial position at the first index of this input array, and...

약 1달 전

해결됨

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

약 1달 전

해결됨

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

약 1달 전

해결됨

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...

약 1달 전

해결됨

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...

약 1달 전

해결됨

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

약 1달 전

해결됨

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 ...

약 1달 전

해결됨

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

약 1달 전

해결됨

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...

약 1달 전

해결됨

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...

약 1달 전

해결됨

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

약 1달 전

해결됨

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

약 1달 전

해결됨

Invert a Logical Matrix
Given a logical matrix, invert it

약 1달 전

해결됨

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...

약 1달 전

해결됨

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.

약 1달 전