Undergrad Nearly constant 0 result from a trig function

Click For Summary
SUMMARY

The discussion centers on using a trigonometric function to interpolate a straight line in MATLAB. The specific expression used is fplot(@(x)(.0000001*cos(x*2*pi)+10), [0 1]), which produces a nearly flat curve with a very small amplitude over the interval 0 to 1. Participants explore the potential applications of this function, particularly in normalizing values and representing standing waves. The conversation highlights the importance of understanding the behavior of trigonometric functions in practical applications.

PREREQUISITES
  • Familiarity with MATLAB programming and its plotting functions
  • Understanding of trigonometric functions, specifically cosine and sine
  • Knowledge of function normalization techniques
  • Basic concepts of wave behavior in mathematical modeling
NEXT STEPS
  • Explore MATLAB's fplot function for advanced plotting techniques
  • Learn about function normalization methods in data analysis
  • Investigate the applications of trigonometric functions in wave mechanics
  • Study the mathematical properties of standing waves and their representations
USEFUL FOR

Mathematics students, MATLAB users, engineers, and anyone interested in applying trigonometric functions to real-world problems, particularly in wave analysis and data normalization.

homerwho
Messages
42
Reaction score
17
TL;DR
I was fiddling with the amplitude and frequency to find an approximately flat sine function
Interpolating a straight line with a trigonometric function.

In Matlab I ended up with this expression. fplot(@(x)(.0000001*cos(x*2*pi)+10), [0 1])
Would anyone like to discuss what this could be used in?
 

Attachments

  • chart.jpg
    chart.jpg
    30.4 KB · Views: 301
Mathematics news on Phys.org
Sorry, what is a "flat sine function"?
 
berkeman said:
Sorry, what is a "flat sine function"?
the attached image is hard to read but on the interval 0..1 the function lies with in a very very small amplitude. "nearly flat"

[Edit] I tend to view equations as shapes. Sorry about the "flat" wording
 
Last edited:
A different plot showing sine vs cosine with a near zero amplitude and normalized 0..1. Could this be used to count from 0 to 1 fractionally?
 

Attachments

  • chart2.jpg
    chart2.jpg
    30.3 KB · Views: 309
You just added a constant and a sine function with a small amplitude. Where is the point?
homerwho said:
Could this be used to count from 0 to 1 fractionally?
I'm not sure what you mean by that.
 
I needed to plot a curve and needed to normalize 0..1. My question has been answered, Thank you. I was thinking of application to standing wave on a 0..1 (domain or range)
 
Last edited:

Similar threads

Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K