• Support PF! Buy your school textbooks, materials and every day products Here!

I really need help with a MATLAB iteration code

  • #1

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!
 

Answers and Replies

  • #2
berkeman
Mentor
56,502
6,402

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.
 

Related Threads for: I really need help with a MATLAB iteration code

  • Last Post
Replies
3
Views
4K
Replies
1
Views
679
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
1
Views
3K
Replies
2
Views
783
Replies
1
Views
2K
  • Last Post
Replies
0
Views
965
  • Last Post
Replies
6
Views
3K
Top