Undergrad Nearly constant 0 result from a trig function

Click For Summary
The discussion revolves around using a trigonometric function to interpolate a straight line in Matlab, specifically with the expression fplot(@(x)(.0000001*cos(x*2*pi)+10), [0 1]). Participants explore the concept of a "flat sine function" and its implications, noting that the function exhibits a very small amplitude, appearing nearly flat within the interval from 0 to 1. The conversation touches on the potential applications of this function, including its use for fractional counting or representing standing waves within a normalized range. Ultimately, the original poster's question about the function's utility is resolved, confirming its relevance for plotting curves in a specified domain. The discussion highlights the intersection of trigonometric functions and practical applications in mathematical modeling.
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: 300
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: 308
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:
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

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