What does math.cos(tick()) do?

What does math.cos(tick()) do?

I have no doubt that you are struggling with mathematics… too bad for you, these are stages that even I haven’t gone through lol, math.sin = sine
math.cos = cosine
math.abs = tandent
math = dictionary of mathematical functions
tick() = returns the number of seconds since January 1st, 1970 according to the devices time

math.abs returns the absolute value of the input number
math.tan is the function for tangent
If you’re going to be snarky at least get it right.

As for OP, you will probably need a more in-depth explanation but,
image

Edit: just realized I uploaded the wrong image LOL
This might provide some insight on how the functions work.

1 Like

I understand that math.cos() returns a cosine value and that tick() returns the number of seconds since the UNIX epoch but hat happens when I do this?

math.cos(tick())

Ah, there are already posts that should explain your question.

2 Likes

It will cosine tick just like it does with any other input. It will likely be negative.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.