I really with a MATLAB iteration code

  • Thread starter Thread starter physicist10
  • Start date Start date
  • Tags Tags
    Code Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
physicist10
Messages
17
Reaction score
0

Homework Statement



Hello, I want to obtain a solution to a, where k is a constant. The formula is:

k/a = tan(a)

I need to write a MATLAB code for this but I have been struggling for hours. And I must send the project to my professor in an hour. :(

Homework Equations



I know that I need to do an iteration but how? I tried doing a fixed point iteration but it didn't work.

The Attempt at a Solution



Very limited so far. I would be so so grateful for any help! Thanks!
 
Physics news on Phys.org
physicist10 said:

Homework Statement



Hello, I want to obtain a solution to a, where k is a constant. The formula is:

k/a = tan(a)

I need to write a MATLAB code for this but I have been struggling for hours. And I must send the project to my professor in an hour. :(

Homework Equations



I know that I need to do an iteration but how? I tried doing a fixed point iteration but it didn't work.

The Attempt at a Solution



Very limited so far. I would be so so grateful for any help! Thanks!

You need to show us what you have done so far. We do not do your work for you here.