I need help in MATLAB code for general tan function with taylor series

3 ビュー (過去 30 日間)
Haseeb Hashim
Haseeb Hashim 2022 年 3 月 10 日
コメント済み: Sam Chak 2022 年 3 月 10 日
I cant understand the B term in the formula and also doesnt know how to code this properly for
I just need help in recognizing this B term I will make the code myself
I have searched everywhere but doesnt seem to understand this term

採用された回答

Jan
Jan 2022 年 3 月 10 日
Bn are the Bernoulli numbers: https://en.wikipedia.org/wiki/Bernoulli_number
WikiPedia is the first point to start a search for mathemtical questions: https://en.wikipedia.org/wiki/Trigonometric_function#Power_series_expansion . Here you find a hint to Bn also.
  2 件のコメント
Haseeb Hashim
Haseeb Hashim 2022 年 3 月 10 日
I have visited the page but cant understand what are they please can you give any hint
Haseeb Hashim
Haseeb Hashim 2022 年 3 月 10 日
Thankyou again Jan. I have found that MATLAB already has the bernoulli numbers stored we just need to access them depending upon the indice i-e bernoulli(2) or bernoulli(4) etc.
Thanks you are always helpful

サインインしてコメントする。

その他の回答 (1 件)

Sam Chak
Sam Chak 2022 年 3 月 10 日
編集済み: Sam Chak 2022 年 3 月 10 日
If we are looking at the same source, then you should be able to view this:
  4 件のコメント
Haseeb Hashim
Haseeb Hashim 2022 年 3 月 10 日
Thanks, After some research I understood these numbers. MATLAB also have these numbers in an array called bernoulli we can access from these
Thanks for helping man
Sam Chak
Sam Chak 2022 年 3 月 10 日
Don't mention it, @Haseeb Hashim. More importantly, you have learned something today. A small achievement to move forward!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by