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

#26 2009-11-30 20:57:18

MESclan
Scratcher
Registered: 2007-06-21
Posts: 40

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

N'th Root! I would appreciate that greatly! (for those who don't know what the n'th root is is just... rooting something with a variable such as the fourth root of seven.. or Nth root of seven)

Offline

 

#27 2009-12-01 03:37:04

DarthPickley
Scratcher
Registered: 2008-06-13
Posts: 100+

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

PLEASE have a ((10)^(2)) block!!
and no matter what people say about how you can do
[blocks]
<set{ product }to( 1
<repeat( exponent
<set{ product }to( (( product <*> num ))
<end>
[/blocks]
to do the same thing for any WHOLE NUMBER exponent, its basically like not having a [blocks]((  <*>  ))[/blocks] block, and saying that instead you can just do
[blocks]
<set{ sum }to( 0
<repeat( factor
<set{ sum }to( (( sum <+> num ))
<end>
[/blocks]
and guess what? its not possible this way to multiply 0.7 by 35.78! because neither are Whole Numbers. OR -5 by -7, because neither are whole numbers!
So, the way some people say you can do it won't work if you want to do:
2^(-3) [equal to 1/2^3]
2^(1/3) [equal to the cube root of 2]
And it is extremely annoying sometimes when you are working with distance formula and other things to have to duplicate long arithmetic expressions.

Offline

 

#28 2010-12-27 07:28:57

Dommie102
Scratcher
Registered: 2010-08-14
Posts: 2

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

<when green flag clicked><{y volocity  }>

Offline

 

#29 2010-12-27 07:35:46

Dommie102
Scratcher
Registered: 2010-08-14
Posts: 2

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

How to make a Calculator work

1. Make Three Varibles
<{ First number }>
<{ Second number }>
<{ NUMBER TOTALY }>

Then make the script

<when green flag clicked>
Ask "Whats your first number going to be"
<set{ First Number }to Answere
Then ask " And your Second Number"
<set{ Second Number }to Answere
<say[ Right i am calculating your Totaly ]for( 2)secs>
<set{ NUMBER TOTALY }to( (( First Number <+> Second Number ))
<say[ Right your totaly is <{  NUMBER TOTALY }> ]for( 10 )secs>

And thats how to make it!

Offline

 

#30 2010-12-27 11:58:28

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

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

The exponent block idea would be useful.

Last edited by Kileymeister (2010-12-27 11:58:37)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#31 2010-12-27 13:39:27

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

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

Epic necropost! And yet, the ideas in this thread still have not come to fruition.  sad  Come on Scratch team, make this happen!


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#32 2010-12-27 13:57:35

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

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

Make BYOB happen, then we can implement all of these ourselves! Power to the people!


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#33 2010-12-27 18:00:07

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

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

Lol  tongue


I support!  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

 

#34 2010-12-27 18:27:36

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

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

I support  big_smile  Though it would make factorial finders and such too easy  tongue


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#35 2012-07-06 17:08:26

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

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

Nth root can be done!
from Paddle2see,

([10^ v] of (([log v] of (X))/(Y)))
where X is the base and Y is the root

reversing that logic, when y is a fraction, it makes an exponent:
([10^ v] of (([log v] of (X))/((1)/(Y))))
and here y is the power and X is the base

Last edited by thebriculator (2012-07-06 17:12:15)


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#36 2012-07-06 17:32:34

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

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

Lucario621 wrote:

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

Well, you're now a Mod, so WHAT NOW.  big_smile


Hai.

Offline

 

#37 2012-07-07 17:45:17

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

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

In scratch 2.0 you can make your own blocks. Even though it's stack-blocks only, the basic workaround is to have a variable called "return".


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#38 2012-07-10 10:39:08

scimonster
Community Moderator
Registered: 2010-06-13
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.)

tongue

Just round to infinity.


I do support this.

Offline

 

#39 2012-07-10 10:59:50

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

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

yeah, large factorials are a problem. on my calculator, the highest it can compute is 69!


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

Board footer