Problem 1304. Hermite Polynomials
Return the n-th Hermite polynomial of the physicists' type.
Assume that n is a non-negative finite integer.
Examples:
hermite_poly(0)
ans =
1 hermite_poly(1)
ans =
2 0 hermite_poly(2)
ans =
4 0 -2 hermite_poly(3)
ans =
8 0 -12 0Neither string operations nor interpolations are allowed!
Solution Stats
Problem Comments
-
1 Comment
Yaroslav
on 28 Apr 2013
Everyone, I've modified the test suite such that common cheats won't work; i.e., regexp/rep, interp1/2/3, num2str, str2num, etc. are disallowed! General numerical solutions, however, are most welcome.
Solution Comments
Show commentsProblem Recent Solvers87
Suggested Problems
-
1774 Solvers
-
Get the length of a given vector
12447 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
661 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
672 Solvers
-
Solving Quadratic Equations (Version 1)
501 Solvers
More from this Author18
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!