I really with a MATLAB iteration code

  • Thread starter Thread starter physicist10
  • Start date Start date
  • Tags Tags
    Code Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
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.