Throwing errors / exceptions
Throwing and handling errors (or exceptions) is an important part of practical programming.
Here your task is to provide an...
Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients.
example:
a=[3 4 5];
b=[...
LASER Tracker - Mirror Distance and Angle
Determine the mirror's distance and relative angle to the LASER Tracker given the distances to a reference SMR (Spherical Mounte...
12 years 前
已解决
Minimum Distance Point to Segment
This Challenge is to determine the minimum distance from a 2-D line segment defined by two points to a point.
The point is (p...
12 years 前
已解决
Legendre polynomials
Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Legendre_polynomials Legendre polynomial>.
*Ex...
12 years 前
已解决
Chebyshev polynomials of the 2nd Kind
Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Chebyshev_polynomials Chebyshev polynomial of the...
Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides.
Output(b):
* Is true if there are any 3 va...
12 years 前
已解决
Chebyshev polynomials of the 1st Kind
Given an integer _n_ ≥ 0, generate the _n_-th <http://en.wikipedia.org/wiki/Chebyshev_polynomials Chebyshev polynomial of the...
12 years 前
已解决
Procrustean bed
Given a vector x and an integer n, convert x to a vector of length n by (1) chopping off the end if it is too long, or (2) addin...