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

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일

1 개 추천

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

I have visited the page but cant understand what are they please can you give any hint
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일

0 개 추천

If we are looking at the same source, then you should be able to view this:

댓글 수: 4

yes but what are they and how to calculate them
I see. I don't know that you know about Bernoulli numbers. From your description about having searched everywhere, I thought you overlooked the at the bottom from your attached image, and tried to point to you where to look at them, so that you can find it in MathWorks Help Center.
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
Don't mention it, @Haseeb Hashim. More importantly, you have learned something today. A small achievement to move forward!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Functions에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2022년 3월 10일

댓글:

2022년 3월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by