Hi everyone! This is a math topic (which you probably already knowđź¤Ş)!
Can someone teach me how to to use these blocksâ¬‡ď¸Ź
Fun Math!
Math is Awesome
Hi everyone! This is a math topic (which you probably already knowđź¤Ş)!
Can someone teach me how to to use these blocksâ¬‡ď¸Ź
Fun Math!
Math is Awesome
First reply, will edit, I did know that
Sine, cosine, and tangent trigonomic ratios (ratios on right triangle). From one of the non-right angles, sine = opposite over hypotenuse, cosine = adjacent over hypotenuse, and tangent = opposite over adjacent. Inverses are the opposite (inverse sin=hyp over opp, etc.)
The last 2 facts are just what happens when you use English. Itâ€™s just how it happened to be. Not exactly math. But still cool.
Here are a few block explanations @TheOnionSWE:
Modulo is just an operator that returns the remainder after division such as 9 / 2 = 4 with remainder 1 since 4 * 2 = 8 and 9 - 8 = 1.
Absolute value just takes a number and returns it as a positive number like the absolute value of -4 would be 4 and the absolute value of 6 would still be just 6.
Round simply takes a number and returns it rounded to the nearest integer. 9.6 would round to 10, 4.2 would round to 4, etc.
Minimum takes 2 values and returns the lower value or minimum of them, hence the name minimum. Examples:
â€˘ min(5)(10) = 5
â€˘ min(7)(2) = 2
Maximum is the same thing but returns the higher or maximum of the 2 values. Examples:
â€˘ max(12)(20) = 20
â€˘ max(15)(7) = 15
@Awesome_E explained sine, cosine, and tangent as well as their inverses very well and you can find many other topics on them, so I wonâ€™t cover them, but if you would like me to, just tag me somewhere and say â€śoi m8 tell me how to do sin cos and tanâ€ť.
Square root just takes a value and returns the number that when multiplied by itself results in the value. Examples:
â€˘ sqrt(100) = 10 because 10 * 10 = 100
â€˘ sqrt(16) = 4 because 4 * 4 = 16
Power takes 2 numbers and returns the first number or the base multiplied by itself the second number of times. Examples:
â€˘ 5 ^ 3 = 125 because 5 * 5 * 5 = 125 which is 5 multiplied by itself 3 times.
â€˘ 10 ^ 3 = 1000 because 10 * 10 * 10 = 1000 which is 10 multiplied by itself 3 times.
Random just takes 2 values, a minimum value and a maximum value, and returns a random integer in the range of those 2 values. Examples:
â€˘ random(2 to 104) could equal 56 or any number between 2 and 104.
â€˘ random(2 to 104) could not equal 187 though because the maximum value was 104 and 187 is not less than 104.
â€˘ random(2 to 104) could also not equal 0 for the same reason it canâ€™t be 187 just in the other direction: 0 is not greater than 2 and 2 is the minimum value.
Those are all my explanations for the blocks you showed. You can also press on them for a little while and a menu will pop up showing what the block does and what you could do to use it in games.
Really Simple Ones
Add - Adds numbers together
Subtract - Subtracts numbers
Multiply - Multiplies numbers
Divide - Divides numbers
Random - Picks a random number
Hard Ones
Power - The first number multiplied by itself however many times the second number is. 2^3=2x2x2
Square Root - Finds what number would need to be squared to make that number. squrt(25)=5
Sine - Has many uses but is used to generate the Y coordinates in circles
Cosine - Has many uses but is used to generate the X coordinates in circles
Tangent - Has many uses but is used to make something point towards something else.
Inverse Sine - I donâ€™t know of any uses in HS.
Inverse Cosine - I donâ€™t know of any uses in HS.
Inverse Tangent - I donâ€™t know of any uses in HS.
Maximum - Will display the second number until the first number is larger than it.
Minimum - Will display the first number until the second number is larger than it.
Round - Will round the number to the nearest whole number
Absolute Value - Will make negative numbers positive.
Modulo - Imagine a clock. The clock is broken up into segments of the second number, and goes around that clock, from zero, the first number amount of times. 20%6=2
And thatâ€™s it! @TheOnionSWE