How do I do this calculation involving the SIN function?

In summary: I can't seem to get it to work.Is it possible to make this second half of the formula more professional?If so, could you please share a link to a more professional expression for the 'Dummy start at cycle with skew' function?I look forward to hearing from you.In summary, the problem is that the 'professional' expression for the 'Dummy start at cycle with skew' function is not very accurate when the skew factor is greater than 0.57.
  • #1
Francis Bacon
11
3
TL;DR Summary
Time t value of SIN function should be calculated to get a SIN function value of -1
Hi,
I am new here and hope I have posted my thread in the right forum.

I have the following SIN function in Excel: =1*(SIN(2*PI()*1,6667*0,45))

The result is -1. That is what I want, so no problem.

But what I want is a function that calculates the Time t value, in this example the value 0.45, that results the SIN value -1.

So the function is: 1*(SIN(2*PI()*1,6667* x )) = -1.

How can I calculate x (Time t)?

Thank you all very much for your assistance.
 
  • Like
Likes Delta2
Mathematics news on Phys.org
  • #2
Hello @Francis Bacon ,
:welcome: !
So what you want is the inverse of the sine function. For -1 you get ##\arcsin (-1) = -{\pi\over 2} \ ##. The equation ##\sin\pi = -1\ ## has solutions modulo ##2\pi##, so $$\sin y = -1 \quad \Leftrightarrow \quad y = -{\pi\over 2} + 2n \pi \ $$in your case, with ##n = 1\ ## you get ##{10 \over 3}\pi x = {3\over 2} \pi \quad \Leftrightarrow \quad x = {9\over 20}##

##\ ##
 
  • Like
  • Love
Likes Delta2, Francis Bacon, berkeman and 1 other person
  • #3
To calculate x, you need the inverse of the SIN function, the ASIN function, which returns a value between ##-\pi/2## and ##\pi/2##. Try $$x = ASIN(-1)/(2*PI()*1,6667)$$

Keep in mind that there are several values of x that will work. They differ by multiples of 1/1,6667 = 0.6. The value you get may not be the one you expected. When I do this calculation, I get x= -.15 and -1.5+0.6= your 0.45
 
Last edited:
  • Like
  • Love
Likes Delta2, Francis Bacon and berkeman
  • #4
Hi "BvU" and "FactChecker",

really thank you very much for your quick and extremely helpful answers. I am blown away. Thanks again.
 
  • Like
Likes berkeman and Delta2
  • #5
Hi,

In light of the very good answers I have received to my question, I would like to ask another question, but this time perhaps a more complicated one.

I have attached two files to this question to hopefully make it a little easier to answer my question.

I have created a sine function with a skew factor (see my Excel file).

The formula for the skew factor can be found in the PDF file.

What I want to achieve is a sine function that always starts at the value -1, no matter if the sine function has a skew factor or not.

As you can see from the Excel examples, the value for the variable "Time t" (in my Excel file, t is labeled "Dummy for Cycle Length") is always different, depending on how long the cycle is.

But as already answered above, the value for t can be calculated with the inverse sine function IF the sine function has NO skew factor.

If the sin function has a skew factor, things get quite complicated.

I have found a solution that "works" for a lay mathematician.
The formula is: =ASIN(-1)/(2*PI()*1.1111) - (((90/60)*0.5)/10)

Cycle Length: 90
Frequency f = 1.1111 (1/90 * 100)
Skew Factor: 0.5
Value 60 is a constant

You can find this formula in the cell after the cell called "Dummy Start at Cycle Trough with Skew:".

The special part of the formula is of course the second half: "- (((90/60)*0.5)/10)".

This is my layman mathematician solution.

Now my question: "Is it possible to make this second half of the formula more professional?"

The problem with my layman mathematician solution is that when the skew factor is 0.58 or greater, the start value of the sine function is no longer exactly -1. With a skew factor of 0.57 or less, my lay mathematician solution "works".

I would like to mention that it is important, that both the sine function with a skew factor and the sine function without a skew factor, must make their respective cycle trough at the same time.

There must be no shift of the cycle trough between the sine function with a skew factor and the sine function without a skew factor.

I hope my description is understandable and thank you very much for your efforts.
 

Attachments

  • Cycle Analysis Skew Factors.pdf
    677.7 KB · Views: 346
  • Forum SIN Wave Example.xlsx
    187.9 KB · Views: 203
  • #6
Hello again,

If I try to translate the job you have in mind for us, then:

You want to know when ##\ \operatorname{SineSkewed}(x, s_\text{kew}) = -1 ##, right ?
So you want to solve for ##x## $$\operatorname{SineSkewed}(x, s_\text{kew}) =
{\sin x\over \sqrt{(s_\text{kew} + \cos x)^2 + (\sin x)^2 }}= -1 $$and the conditions for that to happen are ##\ \sin x < 0\ ## .AND. ##\ s_\text{kew} + \cos x = 0\ ##.
In the range ##\ [0, 2\pi]\ ## the first comes out at ##\ \pi < x < 2\pi \ ## and the second is when ## x = - \arccos(-s_\text{kew})\ ##.

In your case the 'professional' expression for Dummy start at cycle with skew ($N$2) is then
##\quad## =ACOS(-U2)/2/PI()/L2

For a skew factor of 0.57 I get 0.3119 in $N$2, very close to what you had.
And it works for ## s_\text{kew} = -0.999999999999 ## to ## s_\text{kew} = 1 ## (so not for -1 ! -- can you see why not ? :smile: )

Job completed !

##\ ##
 
  • Like
  • Wow
Likes FactChecker and Francis Bacon
  • #7
Hi BvU,

thanks for your work and especially for describing my issue in a clear mathematical way.

Unfortunately I have some problems with your formula: =ACOS(-U2)/2/PI()/L2

I have tried some variations of your formula but without success.

What do you mean with (-U2), L2, and about 2/PI() ?

Thanks again.
 
  • #8
Oops, confusion on my end (had inserted a few columns). I meant that cell N2 contains
##\qquad## =ACOS(-Q2)/2/PI()/H2
Q2 is the skew factor, H2 is frequency * 100

##\ ##
 
  • Love
Likes Francis Bacon
  • #9
Hi BuV,

Thank you very much. Your formula works perfectly.

I don't know why I didn't figure out the problem with the column letters. Maybe I tried too many variations and in the end everything was messed up.

Let me add one last point. It is necessary to multiply the results by -1 to get a sine function that starts with -1.

So your modified formula therefore is: =(ACOS(-Q2)/2/PI()/H2)*-1

Thank you. Math is really a great thing.
 
  • #10
Francis Bacon said:
multiply the result by -1
Correct. I had that in B3 (=##\;-##N2) and overlooked that as well o:) :smile:

##\ ##
 
  • Informative
Likes Francis Bacon

FAQ: How do I do this calculation involving the SIN function?

What is the SIN function used for?

The SIN function, short for sine function, is used to calculate the ratio of the opposite side of a right triangle to its hypotenuse. It is commonly used in trigonometry and geometry to find missing side lengths and angles.

How do I input the SIN function into a calculator?

Most calculators have a dedicated SIN button that you can press before inputting the angle in degrees or radians. If your calculator does not have this button, you can use the formula SIN(x) or sin(x) where x is the angle in degrees or radians.

What is the range of values for the SIN function?

The SIN function outputs values between -1 and 1. This means that the ratio of the opposite side to the hypotenuse in a right triangle will always be between -1 and 1.

How do I calculate the inverse of the SIN function?

To calculate the inverse of the SIN function, you can use the inverse SIN button on your calculator or use the formula SIN-1(x) or arcsin(x). This will give you the angle in degrees or radians that corresponds to the given ratio.

Can the SIN function be used for non-right triangles?

No, the SIN function can only be used for right triangles. It is one of the three primary trigonometric functions (along with cosine and tangent) that are specific to right triangles. Other methods, such as the Law of Sines and Law of Cosines, are used for non-right triangles.

Similar threads

Back
Top