This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-11-23 22:01:01

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

More math functions!!! [/nerdy]

There could be some more like...

Factorial - The number, times its previous, repeated until 1 (ex. 6! is 720 because 6*5*4*3*2*1=720)
Double Factorial - The number, times it's previous by 2, repeated until one - or basically for an odd number, all of the odd ones until 1, and for even all of the even ones until to (ex. 5! is 15 because 5*3*1=15)
Exponents - 3 to the power of 3, for example. That would be 3*3*3=27
LCM/LCD (Least common multiple/denominator)
GCF (gratest common factor)

They could all be handy...althnough their possible with long algorithms.

Any other ideas I should add?

Last edited by Lucario621 (2009-11-24 14:56:27)


http://i.imgur.com/WBkM2QQ.png

Offline

 

#2 2009-11-23 22:10:48

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: More math functions!!! [/nerdy]

They could all be added  big_smile  I like the idea...



What about A to the power of (*) block?


Flat Out G

Offline

 

#3 2009-11-23 23:28:00

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: More math functions!!! [/nerdy]

All of these are good ideas... imagine the power!

The problem with factorials is that they quickly get big. Computing 917859281! requries a lot of space.

pinochio, your idea is an exponent. A to the power of 5 is written as A5, with the 5 smaller and on the top-right of the A.

But anyway, great ideas!  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#4 2009-11-23 23:37:28

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: More math functions!!! [/nerdy]

I absolutely agree.

Streak, a Scratch modification by billyedward, has all of those functions except factorial, I think, but unfortunately you can not upload it to the website.  sad  But at least it has the blocks....

Last edited by cocoanut (2009-11-23 23:38:16)


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#5 2009-11-24 07:51:30

pinochio
Scratcher
Registered: 2009-03-19
Posts: 1000+

Re: More math functions!!! [/nerdy]

Chrischb wrote:

All of these are good ideas... imagine the power!

The problem with factorials is that they quickly get big. Computing 917859281! requries a lot of space.

pinochio, your idea is an exponent. A to the power of 5 is written as A5, with the 5 smaller and on the top-right of the A.

But anyway, great ideas!  smile

FAIL... I forgot the math-y term...


Flat Out G

Offline

 

#6 2009-11-25 00:19:34

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: More math functions!!! [/nerdy]

What about a logarithm block? That would be awesome!


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#7 2009-11-25 00:48:30

cocoanut
Scratcher
Registered: 2007-07-10
Posts: 1000+

Re: More math functions!!! [/nerdy]

greenflash wrote:

What about a logarithm block? That would be awesome!

They have that.....

http://img214.imageshack.us/img214/8753/logr.gif


http://i42.tinypic.com/20gyvif.jpgPlease leave a message at the beep.
Steam: Hellephant

Offline

 

#8 2009-11-25 01:30:12

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: More math functions!!! [/nerdy]

cocoanut wrote:

greenflash wrote:

What about a logarithm block? That would be awesome!

They have that.....

http://img214.imageshack.us/img214/8753/logr.gif

If they have those, why not have an exponent block? They're related.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#9 2009-11-25 10:23:47

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: More math functions!!! [/nerdy]

Just include all the math functions from this page and it would be perfect
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#10 2009-11-25 17:52:39

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: More math functions!!! [/nerdy]

cocoanut wrote:

greenflash wrote:

What about a logarithm block? That would be awesome!

They have that.....

http://img214.imageshack.us/img214/8753/logr.gif

Oops! I forgot about that!  smile


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#11 2009-11-25 18:00:00

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: More math functions!!! [/nerdy]

archmage wrote:

Just include all the math functions from this page and it would be perfect
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Math.html

Those look complicated and useless to me, but I bet some scratchers might just adore them. And if it's already used in different programming languages, than it should be doable in scratch...


http://i.imgur.com/WBkM2QQ.png

Offline

 

#12 2009-11-25 18:24:54

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: More math functions!!! [/nerdy]

They are all useful. However, many are not necessary because scratch only has 1 number variable type.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#13 2009-11-25 18:44:19

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: More math functions!!! [/nerdy]

archmage wrote:

They are all useful. However, many are not necessary because scratch only has 1 number variable type.

Umm...what does that mean?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#14 2009-11-25 23:47:27

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: More math functions!!! [/nerdy]

Lucario621 wrote:

archmage wrote:

They are all useful. However, many are not necessary because scratch only has 1 number variable type.

Umm...what does that mean?

Does it use other types of numbers...?


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#15 2009-11-26 09:59:56

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: More math functions!!! [/nerdy]

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html
Those are all the variable types in java. They have different limits on what values can be assigned to them. When doing general programming, you would use the double variable for numbers.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#16 2009-11-26 23:37:27

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: More math functions!!! [/nerdy]

Right, I'm bumping this. This isn't one of those ridiculous ideas you see all the time.


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#17 2009-11-27 16:05:11

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: More math functions!!! [/nerdy]

Yes this would be sweat


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#18 2009-11-27 18:57:34

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: More math functions!!! [/nerdy]

I agree with this thread.


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#19 2009-11-28 00:23:06

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: More math functions!!! [/nerdy]

Scratch Team, have you seen this yet?


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#20 2009-11-28 10:06:42

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: More math functions!!! [/nerdy]

Yeah... HAVE YOU? No mod or admin has posted here. If this is your way of saying 'Well as great as these suggestions are, but we can't really do that, and/or it will be complicated for new people..." without hurting our  feelings or something, than its a pretty lame way. I'm a man, and my feelings can take quite a punch  tongue


http://i.imgur.com/WBkM2QQ.png

Offline

 

#21 2009-11-28 10:55:26

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: More math functions!!! [/nerdy]

Lucario621 wrote:

I'm a man, and my feelings can take quite a punch  tongue

XD

Maybe they'll read this thread sometime later. They don't ignore the Suggestions section, don't they?  hmm


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#22 2009-11-28 10:59:05

DawnLight
Scratcher
Registered: 2009-04-25
Posts: 500+

Re: More math functions!!! [/nerdy]

technoguyx wrote:

Lucario621 wrote:

I'm a man, and my feelings can take quite a punch  tongue

XD

Maybe they'll read this thread sometime later. They don't ignore the Suggestions section, don't they?  hmm

The Scratch Team does not ignore the Suggestions. They are just busy. Imagine, being the owner/creator of a community this big. You would have to be doing way more stuff than what is usually to be done by regular members.

Offline

 

#23 2009-11-28 15:05:41

TheSalamander
Scratcher
Registered: 2009-11-23
Posts: 16

Re: More math functions!!! [/nerdy]

Or they could just give us a for loop... Then we could do factorials/doublefactorials

I cant imagine any scenario however where LCM/HCF would be useful :S

Offline

 

#24 2009-11-28 15:18:54

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: More math functions!!! [/nerdy]

DawnLight wrote:

technoguyx wrote:

Lucario621 wrote:

I'm a man, and my feelings can take quite a punch  tongue

XD

Maybe they'll read this thread sometime later. They don't ignore the Suggestions section, don't they?  hmm

The Scratch Team does not ignore the Suggestions. They are just busy. Imagine, being the owner/creator of a community this big. You would have to be doing way more stuff than what is usually to be done by regular members.

But wouldn't you imagine that they would give some sort of feedback?


http://i.imgur.com/WBkM2QQ.png

Offline

 

#25 2009-11-28 15:35:56

NiteHaunt
Scratcher
Registered: 2009-11-21
Posts: 39

Re: More math functions!!! [/nerdy]

No srrsly, the probobly don't check things that have an un-interesting title.  big_smile


[blocks] <round( [/blocks]

Offline

 

Board footer