Solve Tan(x)+2*x=0 - - MathWorks

Skip to content
  • MATLAB Answers
  • File Exchange
  • Cody
  • AI Chat Playground
  • Discussions
  • Contests
  • Blogs
  • More
    • Communities
    • Treasure Hunt
    • Community Advisors
    • Virtual Badges
    • About
  • More

You are now following this question

  • You will see updates in your followed content feed.
  • You may receive emails, depending on your communication preferences.
solve tan(x)+2*x=0 Follow 6 views (last 30 days) Show older comments rakesh kumar rakesh kumar on 27 Mar 2022
  • Vote0
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0

    Cancel Copy to Clipboard
  • Vote0
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0

    Cancel Copy to Clipboard
Commented: rakesh kumar on 27 Mar 2022 Accepted Answer: Sam Chak Open in MATLAB Online I am trying solve tan(x)+ 2*x=0. however when i checked the result I am not getting the result zero.Please help where I am wrong.my code issyms xfor n = 1:10 x1 = (n-1/2)*pi; x2 = (n)*pi; v(n) = double(vpasolve(tan(x)+2*x == 0,x,[x1 x2])) check(n)=tan(180*v(n)/pi)+2*v(n)endv = 1.8366 4.8158 7.9171 11.0408 14.1724 17.3076 20.4448 23.5831 26.7222 29.8619check = 74.6635 9.0421 18.6043 24.2170 40.6395 32.7051 40.4513 47.5085 55.4912 57.0835
0 Comments Show -2 older commentsHide -2 older comments

Sign in to comment.

Sign in to answer this question.

Accepted Answer

Sam Chak Sam Chak on 27 Mar 2022
  • Vote1
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#answer_927884

    Cancel Copy to Clipboard
  • Vote1
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#answer_927884

    Cancel Copy to Clipboard
Hi @rakesh kumarI think you are not wrong, but it has infinitely many solutions. The solution v is in radian, but you checked as if v is in degree.
1 Comment Show -1 older commentsHide -1 older comments
rakesh kumar rakesh kumar on 27 Mar 2022

https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#comment_2067324

Cancel Copy to Clipboard
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#comment_2067324

    Cancel Copy to Clipboard
thanks a lot,

Sign in to comment.

More Answers (1)

Torsten Torsten on 27 Mar 2022
  • Vote1
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#answer_927974

    Cancel Copy to Clipboard
  • Vote1
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#answer_927974

    Cancel Copy to Clipboard
Open in MATLAB Online Your check must becheck(n)=tan(v(n))+2*v(n)instead ofcheck(n)=tan(180*v(n)/pi)+2*v(n)
1 Comment Show -1 older commentsHide -1 older comments
rakesh kumar rakesh kumar on 27 Mar 2022

https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#comment_2067769

Cancel Copy to Clipboard
  • Link

    https://www.mathworks.com/matlabcentral/answers/1681534-solve-tan-x-2-x-0#comment_2067769

    Cancel Copy to Clipboard
thanks, ihave made the correction. thanks once again

Sign in to comment.

Sign in to answer this question.

See Also

Categories

MATLAB Mathematics Find more on Mathematics in Help Center and File Exchange

Tags

  • solve

Community Treasure Hunt

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

Start Hunting!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.

Close MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • (English)
  • (Deutsch)
  • (Français)
  • (简体中文)
  • (English)

You can also select a web site from the following list

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom(English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

Từ khóa » C-24.2170