Discuss Scratch

UncappedCyanMarker
Scratcher
67 posts

what do these blocks do?

([abs v] of ()::operators)
([floor v] of ()::operators)
([ceiling v] of ()::operators)
([sqrt v] of ()::operators)
([sin v] of ()::operators)
([cos v] of ()::operators)
([tan v] of ()::operators)
([asin v] of ()::operators)
([acos v] of ()::operators)
([atan v] of ()::operators)
([ln v] of ()::operators)
([log v] of ()::operators)
([e ^ v] of ()::operators)
([10 ^ v] of ()::operators)

sorry if this is the wrong forum

Last edited by UncappedCyanMarker (Today 00:03:13)

The67thBanana
Scratcher
8 posts

what do these blocks do?

its just a bunch of math blocks
UncappedCyanMarker
Scratcher
67 posts

what do these blocks do?

but i wanna know how they work
happywaffle0
Scratcher
100+ posts

what do these blocks do?

The67thBanana wrote:

its just a bunch of math blocks
duh

UncappedCyanMarker wrote:

sorry if this is the wrong forum

yeah, it should go to QaS (Questions about Scratch), though thats fine.

  • The abs() block returns the absolute value. i.e. -4 becomes 4, 7 becomes 7. basically turns a negative number positive and a positive one positive.
  • The floor(), ceiling() rounds a number to the nearest integer, but the floor() block rounds to lowest integer (36.8 -> 36) and ceiling() rounds to highest integer (38.2 -> 39).
  • sqrt() gives the square root of a number.
  • sin(), cos(), and tan() are trigonometric blocks, used for trig operations. note that scratch uses Degrees, in case you were wondering. These can be used to make wavy effects that go back and forth (except tan(), that's different)
  • asin() acos() and atan() are the inverse trigonometric functions
  • ln() and log() are logarithmic functions, with ln() being base e (20.08 -> 3, 7.389 -> 2, etc) and log() being base 10 (1000 -> 3, 100 -> 2, etc)
  • e^() and 10^() are exponential functions. basically input a number, get huge number out.

note that this is the best I can explain this

Last edited by happywaffle0 (Today 00:23:12)

UncappedCyanMarker
Scratcher
67 posts

what do these blocks do?

happywaffle0 wrote:

The67thBanana wrote:

its just a bunch of math blocks
duh

UncappedCyanMarker wrote:

sorry if this is the wrong forum

yeah, it should go to QaS (Questions about Scratch), though thats fine.

  • The abs() block returns the absolute value. i.e. -4 becomes 4, 7 becomes 7. basically turns a negative number positive and a positive one positive.
  • The floor(), ceiling() rounds a number to the nearest integer, but the floor() block rounds to lowest integer (36.8 -> 36) and ceiling() rounds to highest integer (38.2 -> 39).
  • sqrt() gives the square root of a number.
  • sin(), cos(), and tan() are trigonometric blocks, used for trig operations. note that scratch uses Degrees, in case you were wondering. These can be used to make wavy effects that go back and forth (except tan(), that's different)
  • asin() acos() and atan() are the inverse trigonometric functions
  • ln() and log() are logarithmic functions, with ln() being base e (20.08 -> 3, 7.389 -> 2, etc) and log() being base 10 (1000 -> 3, 100 -> 2, etc)
  • e^() and 10^() are exponential functions. basically input a number, get huge number out.

note that this is the best I can explain this


thanks
ClarkeGhost
Scratcher
100+ posts

what do these blocks do?

The abs of operator is the absolute value operator - it calculates a negative number's distance away from 0 (basically converting a negative number to positive)

The floor of operator rounds any decimal down to a whole number.

The ceiling of operator rounds any decimal up to a whole number.

The sqrt is a square root operator - it calculates the square root of the number you put in (etc. the square root of 81 is 9)

The sin operator (sine) takes an angle (in degrees) as an input and returns a value between -1 and 1.

The cos (cosine) operator works almost exactly like the sine operator, taking an angle in degrees and returning a value between -1 and 1. The main difference is where it starts: while sine starts at 0, cosine starts at its maximum value of 1.

The tan (tangent) operator calculates the mathematical ratio of a right triangle's opposite side over its adjacent side for a given angle, returning any value from negative infinity to positive infinity.

The asin (arcsine or inverse sine) operator does the exact opposite of the sine block.

The acos (arccosine or inverse cosine) operator is the exact opposite of the cos block.

The atan (arctangent or inverse tangent) operator is the exact opposite of the tan block.

The ln block calculates the natural logarithm of a number.

The log block calculates the common logarithm of a number, which means it uses a base of 10.

The e^ block calculates exponential growth using Euler's number (e ≈ 2.71828).

The 10^ operator calculates exponential growth using a base of 10.

Credits: Wikipedia, ClarkeGhost

Powered by DjangoBB