# Help With Math Blocks

#1

Even though this is similar to Valgo’s one ( link will be put down below ). I wanted to make one. People might wonder what some of these blocks mean or are so I’m here to help you. You should know addition, subtraction, multiplication and division.

Here are some blocks that people might struggle with:

Random means that you pick a number as your minimum and maximum. For an example:

Power is when you times a number by itself the amount of times the number says. Like, 9 ^ 3 is 9 x 9 x 9 = 729.

Depending on the number you have to power by, you go on until you get the answer.

Here’s another example:

This means 2 x 2 x 2 = 8

COSINE, SINE AND TANGENT

Sine,Cosine and Tangent (often shortened to sin ,cos and tan ) are each a ratio of sides of a right angled triangle:

For a given angle θ each ratio stays the same
no matter how big or small the triangle is

To calculate them:

Divide the length of one side by another side

1. Put a when game starts go to center (or wherever you want your circle to be).

1. Then and a when game starts repeat forever

870FA020-20AE-42BE-A640-C42FCF109490.jpeg1465×714 147 KB

1. Inside the repeat forever add a set position block

053A5BEA-D05D-4C31-AA99-4FD7AFA9801D.jpeg1465×694 175 KB

1. Inside the X part add Cosine labeled as COS and the following will appear.

13B17C2B-BAC6-4F65-8270-3254CB3F3451.jpeg1465×704 208 KB

1. Add the Radius of Circle ( NOT A VARIABLE ) a random Variable and the x position of the circle ( NOT A VARIABLE )

EF77B55C-C632-4428-80CB-43D154B8D065.jpeg1464×695 242 KB

1. In the Y section do the same thing as the X but with SINE

07BB2944-23D3-45CE-A075-C8A0E2E08963.jpeg1469×709 235 KB

1. Then add a when game starts repeat forever increase VARIABLE BY 1

837D4165-682E-45A1-9982-8861D5767CA4.jpeg1468×665 168 KB

Play game and watch the sprite go in a circle!!,

Round

Round means when you have a number and round to the nearest whole number. For an example, 2.3 would round down to 2. 2 is a whole number, not a decimal or fraction.

I use this to help me.

So, when you round. What if it’s 5? Well, it could round up and down but I’m not sure why but you have to round up.

Inverse Sine, Cosine & Tangent

I myself don’t understand this so I’ve linked a website. Sorry if you wanted me to explain but I don’t know how to explain, even though I’m 10.

https://www.mathsisfun.com/algebra/trig-inverse-sin-cos-tan.html

Absolute Value

This looks hard but is easy. Absolute Value is taking of the - of a negative number. If you don’t understand that explanation, it means only how far a number is from zero:

“6” is 6 away from zero,
and “−6” is also 6 away from zero.

So the absolute value of 6 is 6 ,
and the absolute value of −6 is also 6

More Examples:

• The absolute value of −9 is 9
• The absolute value of 3 is 3
• The absolute value of 0 is 0
• The absolute value of −156 is 156

### No Negatives!

So in practice “absolute value” means to remove any negative sign in front of a number, and to think of all numbers as positive (or zero).

### Absolute Value Symbol

To show that we want the absolute value of something, we put “|” marks either side (they are called “bars” and are found on the right side of a keyboard), like these examples:

I−5I = 5
I7I = 7

Sometimes absolute value is also written as “abs()”, so abs(−1) = 1 is the same as |−1| = 1
For an example:

Absolute Value Of -8 is 8
Absolute Value Of 8 would still be 8

This is a work in progress. I’ll edit it and add more soon

Before I forget, here’s the link!

Credit To TheDeliciousOrange For Sine and Cosine

Popkea General Topic/ Popkea is very nice!- CoM
Popkea General Topic/ Popkea is very nice!- CoM
#2

You may want to send ay what random actually does.
Questions may appear such as “Well, what does it do when I put in the min/max numbers? How may I apply that to my code?”
Random will pick a number between a set min and max.

9^2 is actually 9 x 9 = 81
9^3 is 9x9x9
And so forth

#3

And 9^9 = 9x9x9x9x9x9x9x9x9=387420489

#4

Correct! Did u know this or was it from this I learnt it?

#5

#6

Can I add Cosine and Sine?

#7

Okay! But please could you tell me sine and cosine, then I’ll give you credit? Plus, how do u make public edit.

#8

You have to be a regular.
Aka this is a wiki edit

Edit: by TheDeliciousOrange, COOL!
I am very coolz

#9

How do u be regular? Sorry for asking questions.

#10

HS chooses regulars that contribute to the forum

#11

COSINE AND SINE

1. Put a when game starts go to center (or wherever you want your circle to be).

2. Then and a when game starts repeat forever

3. Inside the repeat forever add a set position block

4. Inside the X part add Cosine labeled as COS and the following will appear.

5. Add the Radius of Circle (NOT A VARIABLE) a random Variable and the x position of the circle (NOT A VARIABLE)

6. In the Y section do the same thing as the X but with SINE

7. Then add a when game starts repeat forever increase VARIABLE BY 1

Play game and watch the sprite go in a circle!!,

#12

Nay quite.
You have to read 20k posts, be on 1/2 of the days and post some amount of times in 100 days
Aka be constantly active

#13

I love the tutorial!
But, maybe explain what sine and cosine really are instead of showing a circle. Here’s a good page: https://www.mathsisfun.com/sine-cosine-tangent.html

#14

This is a good topic, thanks!
Was Sine and Cosine explained? I don’t know how Sine and cosine work

#15

#16

Wait, I thought the system does

#17

They are trigonometry values and I’m only in 6th grade, so I don’t know all that much about trigonometry.

Scuse me while I copy and paste from the internet
trig·o·nom·e·try

/ˌtriɡəˈnämətrē/

noun

1. the branch of mathematics dealing with the relations of the sides and angles of triangles and with the relevant functions of any angles.

#18

I don’t think I’ve ever done trigonometry honestly
I’ve done angles and stuff though but nothing like sine and cosine or the hard stuff

#19

Here’s a screenshot that I don’t understand.

#20

Oooooooh trig fun!

I’d explain but I don’t have time rn lol sorry