Discuss Scratch

Caeden02
Scratcher
90 posts

_of_ Blocks?

I want to know what all of these abbreviations to this block mean:
([ v] of (0))
Please tell me in words

Last edited by Caeden02 (March 2, 2014 01:06:00)

honeyr2
Scratcher
80 posts

_of_ Blocks?

Caeden02 wrote:

I want to know what all of these abbreviations to this block mean:
([ v] of (0))
Please tell me in words

What
([v] of [Sprite1 v])
means is like if you want a sprite to see if another sprite's, say, x position, was, say, 55, then you would use this block. Here is an example:

when green flag clicked
forever

if <<([x position v] of [Sprite2 v]) = [55]> then
repeat until <not <([x position v] of [Sprite2 v]) = [55]>>
change [color v] effect by (50)
end

end
end
honeyr2
Scratcher
80 posts

_of_ Blocks?

Actually like this:

when green flag clicked
forever

if <([ x position v] of [Sprite2 v]) = [55]> then
repeat until <not <([ x position v] of [Sprite2 v]) = [55]>>
change [color v] effect by (50)

end

end
end
scubajerry
Scratcher
1000+ posts

_of_ Blocks?

I think you really meant the GREEN Block
<[sqrt v] of (9)>

They are all math functions.
abs - Absolute Value get rid if negative signs. Changes -5 or 5 to 5
Floor - Rounds DOWN. Changes 4.9 to 4
Ceiling - Rounds UP. Change 4.1 to 5
Sqrt - Square Root - Sqrt of 9 = 3
Sin - Sine Trig Function
Cos - Cosine Trig Function
Tan - Tangent Trig Function
ASin - ArcSine Trig Function
ACos - ArcCosine Trig Function
ATan - ArcTangent Trig Function
Ln - Natural Log
Log - Log
e^ - e raised to a power
10^ - 10 raised to a power

Last edited by scubajerry (March 2, 2014 02:00:09)

Caeden02
Scratcher
90 posts

_of_ Blocks?

scubajerry wrote:

I think you really meant the GREEN Block
<[sqrt v] of (9)>

They are all math functions.
abs - Absolute Value get rid if negative signs. Changes -5 or 5 to 5
Floor - Rounds DOWN. Changes 4.9 to 4
Ceiling - Rounds UP. Change 4.1 to 5
Sqrt - Square Root - Sqrt of 9 = 3
Sin - Sine Trig Function
Cos - Cosine Trig Function
Tan - Tangent Trig Function
ASin - ArcSine Trig Function
ACos - ArcCosine Trig Function
ATan - ArcTangent Trig Function
Ln - Natural Log
Log - Log
e^ - e raised to a power
10^ - 10 raised to a power
Thank You!
HashtagSuper111
Scratcher
24 posts

_of_ Blocks?

scubajerry wrote:

I think you really meant the GREEN Block
<[sqrt v] of (9)>

They are all math functions.
abs - Absolute Value get rid if negative signs. Changes -5 or 5 to 5
Floor - Rounds DOWN. Changes 4.9 to 4
Ceiling - Rounds UP. Change 4.1 to 5
Sqrt - Square Root - Sqrt of 9 = 3
Sin - Sine Trig Function
Cos - Cosine Trig Function
Tan - Tangent Trig Function
ASin - ArcSine Trig Function
ACos - ArcCosine Trig Function
ATan - ArcTangent Trig Function
Ln - Natural Log
Log - Log
e^ - e raised to a power
10^ - 10 raised to a power
I have been wondering what Sin, Cos, Tan, ASin, ACos, and ATan meant, which is why I came here. This comment did help me some though. But what is a simple way of explaining those 6 math terms. (I tried looking on the scratch tutorial, but it just said to pick one of those to get a different number. It didn't say–or simplify like I want it to be, because I looked it up online and my brain transferred all of those words into sdofihsodifhsodghsdoghdsogisdogsodingosdighsodgisdoidfngods. And I get the same responce when I read your definitions. For example, what is a trig funtion? Think you can simplify it like you're telling it to a 3rd grader without him/her getting to confused–I am not in 3rd grade by the way
deck26
Scratcher
1000+ posts

_of_ Blocks?

Trig=trigonometry. Look that up on wikipedia and the overview section may get you started. You can do a lot more with these functions than look at right angled triangles but that's a good starting point. http://www.purplemath.com/modules/basirati.htm is another page that might help.
digthebone
Scratcher
500+ posts

_of_ Blocks?

these are the kind of
([ v] of [  v])
blocks.
([x position v] of [  v])
x position basically senses the x position for a sprite.
([y position v] of [  v])
y position is like x position, it senses the y position of a sprite.
([direction v] of [  v])
this senses the direction of the sprite.
([costume # v] of [  v])
this senses the costume number the sprite is wearing at the moment.
([costume name v] of [  v]) 
this senses the name of the costume the sprite is wearing at the moment.
([size v] of [  v])
this senses the % of the size the sprite is at.
([volume v] of [  v])
this senses the volume of the music of the sprite. Hopefully that makes sense.
HashtagSuper111
Scratcher
24 posts

_of_ Blocks?

deck26 wrote:

Trig=trigonometry. Look that up on wikipedia and the overview section may get you started. You can do a lot more with these functions than look at right angled triangles but that's a good starting point. http://www.purplemath.com/modules/basirati.htm is another page that might help.


Again, my brain translated it into sdaiofhwdoingosdingosdingosdingoisdngoisdngodsingosdgindsogns
deck26
Scratcher
1000+ posts

_of_ Blocks?

HashtagSuper111 wrote:

deck26 wrote:

Trig=trigonometry. Look that up on wikipedia and the overview section may get you started. You can do a lot more with these functions than look at right angled triangles but that's a good starting point. http://www.purplemath.com/modules/basirati.htm is another page that might help.


Again, my brain translated it into sdaiofhwdoingosdingosdingosdingoisdngoisdngodsingosdgindsogns
Let's take the sine function as one example then and deal with that in basic steps.

Imagine (or draw if you need to) a right angled triangle. So the triangle has three angles, one is 90 degrees and the other two add up to 90 as a triangles angles always add up to 180 degrees.

OK, the side opposite the right angle is always going to be the longest side and is called the hypotenuse. So the other two sides are shorter than the hypotenuse.

If this was a large triangle on the ground and we stood near one of the smaller angles we'd be close to one of the shorter sides and the hypotenuse. As far as the angle we're standing next to is concerned the shorter side near us is the ‘adjacent’ side and the other short side is the ‘opposite’ side. (One short side is ‘opposite’ one angle and the other is ‘opposite’ the other.)

Now ‘sine’ is just a function which gives a value which changes according to the angle. So we talk about the sine (or sin) of 30 degrees, for example, which is just a number. One way to calculate the number is to divide the length of the opposite side by the length of the hypotenuse. So we can say sin=opposite/hypotenuse.

Now that doesn't get us very far in terms of using this function for anything but if you understand that it's a start and we can work from there. You should also be able to see that for a small angle the opposite side is going to be relatively small so sin will be small and will increase as the angle increases. But since the opposite side has to be shorter than the hypotenuse the maximum value we can get is less than 1.

Does that make sense?
deck26
Scratcher
1000+ posts

_of_ Blocks?

http://scratch.mit.edu/projects/43173338/ is a very good project which shows how the values of sin, cos etc vary with the angle.

Essentially what a lot of this means is that you can work out positions or directions from other information.

For example, if you have a sprite with x,y coordinates you can work out the angle and distance from an origin or other point, Similarly if you know the angle and direction between a point A (with known x,y coordinates) and another point B you can work out the x,y coordinates of B.
Sparf
Scratcher
100+ posts

_of_ Blocks?

honeyr2 wrote:

Caeden02 wrote:

I want to know what all of these abbreviations to this block mean:
([ v] of (0))
Please tell me in words

What
([v] of [Sprite1 v])
means is like if you want a sprite to see if another sprite's, say, x position, was, say, 55, then you would use this block. Here is an example:

when green flag clicked
forever

if <<([x position v] of [Sprite2 v]) = [55]> then
repeat until <not <([x position v] of [Sprite2 v]) = [55]>>
change [color v] effect by (50)
end

end
end
Sparf
Scratcher
100+ posts

_of_ Blocks?

lol
deck26
Scratcher
1000+ posts

_of_ Blocks?

Sparf wrote:

lol
Please don't spam or necropost.

Powered by DjangoBB