Discuss Scratch

coder2045
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

TheHockeyist wrote:

Support, but workaroundable. It is hard for some people to remember those digits, so… support.
3.14 is easy to remember. I'm 10 and I know 100 digits.
Nambaseking01
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

coder2045 wrote:

3.14 is easy to remember. I'm 10 and I know 100 digits.

You know 100 digits of Pi? I only know 3.14159 (they didn't even start teaching me about it at school, I learnt it via Scratch).



Wow, that could actually be very useful - Pi is a very useful operation that could be used for a lot of circle calculation.
chrdagos
Scratcher
500+ posts

Implementing of PI (3.141.....) into "Operators"

support. but maybe the block can look like
([pi v] :: #5EC15D)
--Explosion--
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

Good idea, but how many digits would this have, and what would happen if someone tried this?
(letter (length of (pi::operators)) of (pi::operators)::operators)
Za-Chary
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

--Explosion-- wrote:

Good idea, but how many digits would this have, and what would happen if someone tried this?
(letter (length of (pi::operators)) of (pi::operators)::operators)
If you replace

(pi :: operators)

with

([e^ v] of (1) :: operators)

(that is, this is just the mathematical constant e), then this is what the output is:

(letter (length of ([e^ v] of (1) :: operators)) of ([e^ v] of (1) :: operators)::operators) // 5

Certainly a similar thing would be possible with a pi reporter.
coder2045
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

Nambaseking01 wrote:

coder2045 wrote:

3.14 is easy to remember. I'm 10 and I know 100 digits.

You know 100 digits of Pi? I only know 3.14159 (they didn't even start teaching me about it at school, I learnt it via Scratch).



Wow, that could actually be very useful - Pi is a very useful operation that could be used for a lot of circle calculation.
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679. Whew.
Edit: I think that's 101 digits if you include the first “3.”

Last edited by coder2045 (Jan. 19, 2020 21:55:30)

minor-edit
Scratcher
500+ posts

Implementing of PI (3.141.....) into "Operators"

( ([sin v] of ((180)*([10 ^ v] of (-5)))) * ([10 ^ v] of (5)) ) // 3.14159
A less simple workaround than if imaginary numbers existed in Scratch.
Dragonlord767
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

It wouldn't even need to be much of pi. Apparently, NASA scientists only use the first 5 digits, and 15 would be enough to calculate the cercumfrence of the Milky Way within a metre of accuracy, if we get the diameter right.
coder2045
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

Dragonlord767 wrote:

It wouldn't even need to be much of pi. Apparently, NASA scientists only use the first 5 digits, and 15 would be enough to calculate the circumfrence of the Milky Way within a metre of accuracy, if we get the diameter right.
I never knew that. (not the bold part)
Nambaseking01
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

coder2045 wrote:

I never knew that. (not the bold part)

My dad says memorizing Pi is only useful for showing off and that people shouldn't memorize it. In addition to my dad's philosophy, Za-Chary says that calculators can do the job for us nowadays. I personally think 3.1415926 is enough, which is what I've memorized until now.

But people, let's try and keep this on-topic and not convert it into a Pi discussion.
chrdagos
Scratcher
500+ posts

Implementing of PI (3.141.....) into "Operators"

--Explosion-- wrote:

Good idea, but how many digits would this have, and what would happen if someone tried this?
(letter (length of (pi::operators)) of (pi::operators)::operators)
maybe it can just have the first couple of digits.
Nambaseking01
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

chrdagos wrote:

maybe it can just have the first couple of digits.

Five digits is the maximum needed really (3.14159) so there's no use in more. Fifteen digits may be useful to calculate stuff about the whole Milky Way galaxy.
Paddle2See
Scratch Team
1000+ posts

Implementing of PI (3.141.....) into "Operators"

Saftreb wrote:

Dear developers,

For the next update I would have a suggestion: I think it would be a good thing to implement PI into “Operators”, if that is possible.

Scratchy creatings
Saftreb

Well - Pi is not an operator. Pi is a constant. And I don't know that it is all that commonly used on Scratch.

Most Scratchers would be happy to rattle off a number of digits of Pi, if you need it though. Just stick it in a variable and you're good to go.
k7e
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

[bump as this topic is reopened… is this spam, I don't know]
gdfsgdfsgdfg
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

set [pi v] to [3.141592653589]

My best attempt recreating it
PkmnQ
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

Is this unrejected?
k7e
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

PkmnQ wrote:

Is this unrejected?
Yes

Last edited by k7e (Feb. 17, 2023 13:44:02)

coder2045
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

PkmnQ wrote:

Is this unrejected?
They didn't un-reject it, they just took it off the TOLORS post because almost nobody suggested it. A block for any constant value, like pi, is rejected.
k7e
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

coder2045 wrote:

PkmnQ wrote:

Is this unrejected?
They didn't un-reject it, they just took it off the TOLORS post because almost nobody suggested it. A block for any constant value, like pi, is rejected.
No it's not
medians
Scratcher
1000+ posts

Implementing of PI (3.141.....) into "Operators"

coder2045 wrote:

PkmnQ wrote:

Is this unrejected?
They didn't un-reject it, they just took it off the TOLORS post because almost nobody suggested it. A block for any constant value, like pi, is rejected.
It used to be rejected, but they decided not to. This topic got reopened.
It could also be like this:
([pi ^ v] of (9) ::operators)
([e ^ v] of (9)) //already exists
([phi ^ v] of (9) ::operators)
Or:
([pi v] ::operators)
([e v] ::operators)
([phi v] ::operators)
maybe also not have it as just a dropdown because it could be confusing.

Last edited by medians (Feb. 17, 2023 14:48:09)

Powered by DjangoBB