Nearly constant 0 result from a trig function

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
5 replies · 2K views
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: 321
Physics news on Phys.org
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: 336
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: