Discuss Scratch

_-Teddy-is-on-_
Scratcher
15 posts

abs/floor/ceiling/sqrt/sin/cos/tan

I don't understand much about these blocks but I see that some people use them in their projects … could someone please explain a little about them to me? : )
D-ScratchNinja
Scratcher
1000+ posts

abs/floor/ceiling/sqrt/sin/cos/tan

Here are some summaries I'm pretty sure I'm correct about:

absofnOutputs a positive value if the input is negativefloorofnAlways rounds downceilingofnAlways rounds upsqrtofnThe opposite of n^2 (or n squared)sinofnTrigonometry operator (hard to summarize)cosofnTrigonometry operator (hard to summarize)tanofnTrigonometry operator (hard to summarize)asinofnThe opposite of sinacosofnThe opposite of cos
AidyGamer60
Scratcher
100+ posts

abs/floor/ceiling/sqrt/sin/cos/tan

D-ScratchNinja wrote:

Here are some summaries I'm pretty sure I'm correct about:

absofnOutputs a positive value if the input is negativefloorofnAlways rounds downceilingofnAlways rounds upsqrtofnThe opposite of n^2 (or n squared)sinofnTrigonometry operator (hard to summarize)cosofnTrigonometry operator (hard to summarize)tanofnTrigonometry operator (hard to summarize)asinofnThe opposite of sinacosofnThe opposite of cos
Uh, but I don't really know what sine, cosine and tangent are… can you summarize it as easily as possible so I can at least have a vague understanding?
gdpr70f61245d597c25631fbb669
Scratcher
100+ posts

abs/floor/ceiling/sqrt/sin/cos/tan

AidyGamer60 wrote:

D-ScratchNinja wrote:

Here are some summaries I'm pretty sure I'm correct about:

absofnOutputs a positive value if the input is negativefloorofnAlways rounds downceilingofnAlways rounds upsqrtofnThe opposite of n^2 (or n squared)sinofnTrigonometry operator (hard to summarize)cosofnTrigonometry operator (hard to summarize)tanofnTrigonometry operator (hard to summarize)asinofnThe opposite of sinacosofnThe opposite of cos
Uh, but I don't really know what sine, cosine and tangent are… can you summarize it as easily as possible so I can at least have a vague understanding?
It's not anything specific to Scratch, it's simply mathematical functions. It would be easiest to learn them from a resource such as Wikipedia: sine
TopCode
Scratcher
1000+ posts

abs/floor/ceiling/sqrt/sin/cos/tan

AidyGamer60 wrote:

D-ScratchNinja wrote:

Here are some summaries I'm pretty sure I'm correct about:

absofnOutputs a positive value if the input is negativefloorofnAlways rounds downceilingofnAlways rounds upsqrtofnThe opposite of n^2 (or n squared)sinofnTrigonometry operator (hard to summarize)cosofnTrigonometry operator (hard to summarize)tanofnTrigonometry operator (hard to summarize)asinofnThe opposite of sinacosofnThe opposite of cos
Uh, but I don't really know what sine, cosine and tangent are… can you summarize it as easily as possible so I can at least have a vague understanding?

ratios of the lengths of a right triangle. sin is opposite/hypotenuse cos is adjacent/hypotenuse and tan is opposite/adjacent, when you input an angle value you get the sin, cos or tan ratio. For asin acos and atan you input the ratio and get the angle back.

hope that helped

Last edited by TopCode (Feb. 25, 2021 00:04:02)

big_secret_009
Scratcher
13 posts

abs/floor/ceiling/sqrt/sin/cos/tan

D-ScratchNinja wrote:

Here are some summaries I'm pretty sure I'm correct about:

absofnOutputs a positive value if the input is negativefloorofnAlways rounds downceilingofnAlways rounds upsqrtofnThe opposite of n^2 (or n squared)sinofnTrigonometry operator (hard to summarize)cosofnTrigonometry operator (hard to summarize)tanofnTrigonometry operator (hard to summarize)asinofnThe opposite of sinacosofnThe opposite of cos

if you hard to explain the sin cos tan, see my project https://scratch.mit.edu/projects/438926403/ and https://scratch.mit.edu/projects/443463777/

Last edited by big_secret_009 (Feb. 25, 2021 01:21:13)

Powered by DjangoBB