Last non-zero digit
Given a number n, find the last non-zero digit of the factorial of that number.
You need to take care of the large values of n....
5 years ago
Solved
Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...
5 years ago
Solved
Hilbert numbers
Given a positive integer, n, return h as follows:
1. If n is not a <https://en.wikipedia.org/wiki/Hilbert_number Hilbert numb...
5 years ago
Solved
Luhn's Algorithm
Luhn's Algorithm is used as a checksum for credit card numbers or similar identifiers. It can detect single-digit changes and sw...
Lah Numbers
Create a square lower diagonal matrix containing the first n Lah number coefficients. In mathematics, the Lah numbers are coeffi...
5 years ago
Solved
Laguerre Polynomial
Create a square lower diagonal matrix containing the first n Laguerre Polynomial coefficients. For n=6, the Laguerre Matrix is:
...
5 years ago
Solved
Namespace
Create a set of n variable names 'a_1',...,'a_n'
The result should be a column oriented cell array of strings.
Example inp...
5 years ago
Solved
Distance of the centroids of the balls
Given *n* balls of radius *r* and the vector *p (nx3)* with all position *(x,y,z)* of the balls, return the symmetric matrix *A ...
5 years ago
Solved
Find the jerk
No, it's not the author of this problem...
Jerk is the rate of change in acceleration over time of an object. So, if given t...
Return strings encapsulated by braces
Return all substrings that are contained within braces ({}).
For example:
str = 'x = rho*x{-1} + (1-rho)*y{+1}';
when...