Why are computers able to store 100000000000000000000000000 but not pie
?
the smaller the number the less space it takes up, so computers should be able to easily store rational numbers like pie.
>>62464041
yes
const int pi = 3;
done.
Pi isn't a number, it's an algorithm
>>62464041
Storage is not the issue, it's finding the exact number. This is dumb.
>>62464100
pie is a ratio, ratios can be represented by numbers
3/1 = 3
pie/1 = pie
>>62464231
a ratio which is impossible to calculate the value of without an algorithm
>>62464041
They can. Write Pi down on some paper and mail it to me. I'll put it in the computers.
>filename
I'm genuinely mad
>>62464041
pie is a transcendental number that cannot be represented exactly in number systems including binary, so you in theory you need infinite storage to store it exactly which is impossible, most numbers are transcendental btw, integers and rational numbers are the exception and even some perfectly represented rational number in decimal cannot be exactly represented in binary like 1/10 and 1/3 for example
>>62464084
>t. engineer
>>62464041from math import pi
>>62465063
engineer would be
pi = 4
>>62465216
>when math.pi is too complicated, so you need to dumb it down for the brainlets
This is the laziest bate I've ever seen, the fact that people are responding seriously suggests /g/ has an average IQ of 70
>>62465017
>cannot be represented exactly in number systems
It can be, in base π
>>62464098
Cringe
>>62466546
You don't even know the answer. If you knew the answer you would just post it. xD
>>62465216from math import pi as pie
fix'd
My goodness, half this thread is just retarded
You guys are all fucking stupid. All a computer needs to store is Chudnovsky algorithm in pic related. Then just put that through a calculator and specify to what accuracy you want it to (AVX-512, FP16, FP64, ect).
fgt
>>62466494
This
>>62464041
You're wrong, it's limited by the precision of the computer
3.14 isn't the exact ratio, you need an algo
does the CPU support that algo? at which depth of precision?
>>62464041
Thank you for the question unfortunately nobody read it through to the end except me. pi is not rational.
>>62467218
read this
>>62465017
>>62464041
Hello brainlet.
>>62465017
>cannot be represented exactly in number systems
It can. π is an exact representation. Just as 1/3 is an exact representation.
>most numbers are transcendental btw
It's not even wrong. It just makes no sense. There is an infinite amount of non-transcendental numbers between any two arbitrary transcendental numbers. Just as the other way round.
>even some perfectly represented rational number in decimal cannot be exactly represented in binary like 1/10 and 1/3 for example
1/10 and 1/3 are representations. You can do the same in binary. 1/1010 and 1/11.
>>62467776
>number systems
do you even what that means?
can you represent pi exactly using decimal number system or any other integer base?
> It's not even wrong. It just makes no sense
you are right, infinite cannot be less than other infinite, but it's still the exception along the infinite spectrum of numbers
> 1/10
I meant (1/10) can be represented exactly in decimal (0.1)dec, but it's irrational when you represnet it in number system with base 2 aka binary, it will be something like (0.11001101.....)bin
>>62464041
>rational numbers like pie.
Pi is not rational... Unless you mean this >>62464084
>>62466494
engineer would be
pi = 10
t. engineer
always need a "risk-factor" in the calculations. And it's easier to do in the head when all the numbers are multiples of 10.
ITT /g/ shows its true colors: uneducated NEETs
>>62464041
My computer still has a drawer to hold mini pizzas, does that count?
>>62467876
>integer base
why limit it to integers?
pi is exactly 10 in base pi.
>>62464041
But anon, computers can store pi
Here it is stored in a png
>>62466564
How would you express any integer in base pi, let alone any other transcendental number?
>>62468060
The same way you would express pi in any integer base
>>62468130
Well I guess you can have base pi since the only number that can't be a base is 0, but it wouldn't be very useful really. Also, that would only apply to the integers -3,-2,-1 (since they're greater than minus pi) and 0,1,2 and 3 (since they're less than positive pi)
>>62467876
>infinite cannot be less than other infinite
do you even transfinite numbers?
>>62464041
data MyNumbers = Just Int | Pi
>rational numbers
>like pie
found your issue
>>62464041
>yooler.jpg
>>62464041
pi is not a rational number, it's the archetypal irrational number.
also it's amazing that computers can even do math, as they barely represent numbers to begin with. just makes you realise that we don't need a lot of precision to get certain "human scale" calculations to work properly.
>>62467876
> infinite cannot be less than other infinite
What are countable and uncountable infinities?
>>62465017
>most numbers are transcendental
no
>>62468831
Infinity+1 = infinity, so yes, infinite cannot be less than another infinite.
>>62464041
>store rational numbers like pie
>rational numbers
>pie
This thread is bait
>>62464041
>rational numbers like pie.
dumbass
>>62464041
why don't we have computers calculate pi eternally as their base process, then do all processes off that?
>>62464413
that fo>>62466524
>I would prefer to write math.pi hundreds of times in my program, instead of pi
I commend you for wearing your autism like a badge of honor
>>62471690
isnt that what the rasberry pie computers do
Someone make this thread interesting an shove a pie in their computer.
>>62468020
I don't need these faggy math equations, I can just monty carlo it.
Because it's an irrational number.
>>62465017
4gb on a drive is heavier than Pigb though
>>62471887
no, they work like normal computers, just smaller. the name comes from the inventors love for raspberry pie, has nothing to do with pi.
>>62465063
kek
>>62464084const double pi = 22.0 / 7.0; // close enough