I really with a MATLAB iteration code

  • Thread starter Thread starter physicist10
  • Start date Start date
  • Tags Tags
    Code Matlab
Click For Summary
SUMMARY

The discussion centers around solving the equation k/a = tan(a) using MATLAB, specifically through iterative methods. The user is struggling with implementing a fixed point iteration to find the solution for 'a', where 'k' is a constant. The urgency of the project submission adds pressure, highlighting the need for effective coding strategies in MATLAB. Participants emphasize the importance of showing prior attempts to receive constructive feedback.

PREREQUISITES
  • Understanding of fixed point iteration methods
  • Familiarity with MATLAB programming
  • Knowledge of trigonometric functions and their properties
  • Basic grasp of numerical analysis concepts
NEXT STEPS
  • Research MATLAB's built-in functions for numerical methods
  • Learn about convergence criteria for iterative methods
  • Explore examples of fixed point iteration in MATLAB
  • Study the implications of choosing different initial guesses in iterative solutions
USEFUL FOR

Students, educators, and anyone involved in numerical methods or MATLAB programming, particularly those facing challenges with iterative solutions in mathematical equations.

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.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K