Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick and Easy Chebyshev T function #2946

Closed
Bobingstern opened this issue Apr 27, 2023 · 1 comment
Closed

Quick and Easy Chebyshev T function #2946

Bobingstern opened this issue Apr 27, 2023 · 1 comment

Comments

@Bobingstern
Copy link
Contributor

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.
For values of
$|x|\leq 1$
$T_n(x)=\cos(n\arccos(x))$
and for
$|x| \geq 1$
$T_n(x)=\frac{1}{2}((x-\sqrt{x^2-1})^n+(x+\sqrt{x^2-1})^n)$

This is ridiculously easy to implement in math.js. The function name could be ChebyshevT just like that of Wolfram Mathematica

@Amanpatel2002-g
Copy link

May I know what the problem in it then.

Repository owner locked and limited conversation to collaborators May 15, 2023
@josdejong josdejong converted this issue into discussion #2952 May 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants