Quick and Easy Chebyshev T function #2952
Bobingstern
started this conversation in
Ideas
Replies: 2 comments
-
May I know what the problem in it then. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@Bobingstern is your proposal to implement a new function |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Chebyshev polynomials of the first kind$T_n(x)$ can be implemented super easily using their trigonometric definition and as a result can be extended to complex values of n and x.
$|x|\leq 1$
$T_n(x)=\cos(n\arccos(x))$
$|x| \geq 1$
$T_n(x)=\frac{1}{2}((x-\sqrt{x^2-1})^n+(x+\sqrt{x^2-1})^n)$
For values of
and for
This is ridiculously easy to implement in math.js. The function name could be ChebyshevT just like that of Wolfram Mathematica
Beta Was this translation helpful? Give feedback.
All reactions