[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1550869617193.gif (1.52 MB, 498x278)
1.52 MB GIF
how come a computer cant draw a perfect circle??

they have ilke a trillion flops a second and they draw circles with a bunch of tiny squares. if you zoom in real close to a computer drawn circle, its all squares
>>
somebody told me that computers were going to solve physics. they cant even solve circles
>>
>>108779278
>if you zoom in real close to a computer drawn circle, its all squares
That sounds like a (You) problem.
Retina display exists
>>
>>108779301
I dont care what display you have, zoom in on the circle 10x, 100x, 1000x its going to be squares
>>
>>108779278
>how come a computer cant draw a perfect circle??
.circle {
border-radius: 50%;
}
>>
File: secret robot internet.jpg (31 KB, 320x380)
31 KB JPG
>>
>>108779278
because Bezier curves can't represent one.
>>
>>108779278
Computers can, monitors can’t
>>
>>108779379
I don't get it.
>>
>>108779312
>I dont care what display you have, zoom in on the circle 10x, 100x, 1000x its going to be squares
Zoom into a vector circle and show me these squares.
>>
>>108779578
Floating point numbers only have so much resolution, so there can be minute errors in arithmetic.
>>
>>108779578
64-bit floats (IEEE 754), not infinite precision, in the same way that OP's "circle" is actually composed of pixels (squares).

$ cd /tmp
$ echo "console.log(0.1+0.2)" > test.js
$ node test.js
0.30000000000000004
>>
>>108779578
floating point does what it says, in binary...
therefore human friendly numbers such as multiples of 0.1 or any decimal number thats all zeroes with a 1 at the end do not exist, you can get 0.09999999... or 0.0100... but it being a binary native format means no amount of bits thrown can fix this inherent property of floating point numbers.
the only way to represent such numbers natively is to use BCD arithmetic or do it in another format like on raw text representing base 10 numbers
>>
>>108779278
SVG doesn't have this problem.
>>
>>108779278
Here's your perfect circle, anon.
https://www.youtube.com/watch?v=eaMs9X1cwUY
>>
do you realize what the fuck computers are capable of doing in earnest

oh you poor shitter, wait until you realize
>>
>>108779278
deadass screenshotting this and putting it in my 4chan folder u mad funny bro
>>
File: 1714211535988688.png (850 KB, 960x1082)
850 KB PNG
>>108779278
Get a monitor with a resolution higher than 320x200.
>>
>>108783258
stop it unc



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.