I'm only 12, so I haven't learnt about some of the mathematical features in Scratch. I managed to figure out that abs was the absolute number, eg, -3 and 3 would count as the same thing. I also know square root and round. But the other ones, I'm not so sure about. I was wondering if anyone could explain cos, sin, tan, acos, asin, atan, in, log, e^ and 10^. And as well as that, I don't really understand [blocks](( <mod> ))[/blocks]. I've clicked on 'help', but it doesn't really help.
And if you can, could you please tell what these can be useful for?
I'd appreciate any help you give me.
Last edited by WeirdF (2009-08-24 07:54:41)

Offline
The mod block gives you the remainder of a division. So if you put "3 mod 7" it would give you 1, since when you try to divide 3 by 7, it gives you 2, but with a remainder of 1. Get it?
I also know cos and sin are usually used for 2-direction scrollers with car-like aceleration. But that's advanced math I haven't learned yet.
Last edited by technoguyx (2009-08-24 08:27:06)
Offline
technoguyx wrote:
The mod block gives you the remainder of a division. So if you put "3 mod 7" it would give you 1, since when you try to divide 3 by 7, it gives you 2, but with a remainder of 1. Get it?
I also know cos and sin are usually used for 2-direction scrollers with car-like aceleration. But that's advanced math I haven't learned yet.
What could mod be useful for then?

Offline
There's a FAQ post that might help a bit...
http://scratch.mit.edu/forums/viewtopic.php?id=5326
If you need more information than what is there, post to that thread so we'll have it in the FAQ section, okay? I'm on the road right now and it's difficult to make long posts but I will try to answer more fully when I get back home in a few days.
Offline
WeirdF wrote:
technoguyx wrote:
The mod block gives you the remainder of a division. So if you put "3 mod 7" it would give you 1, since when you try to divide 3 by 7, it gives you 2, but with a remainder of 1. Get it?
I also know cos and sin are usually used for 2-direction scrollers with car-like aceleration. But that's advanced math I haven't learned yet.What could mod be useful for then?
Mod could be used to see if a number is divisible by another.
if < (x mod y) = 0
x is divisible by y.
Offline