I-RealPi ihlinzeka ngama-algorithms wokubala we-Pi angcono kakhulu futhi athakazelisa kakhulu laphaya. Lolu hlelo lokusebenza luwuphawu oluhlola i-CPU yedivayisi yakho ye-Android nokusebenza kwenkumbulo. Ibala inani le-Pi linani lezindawo zamadesimali ozicacisayo. Ungabuka futhi useshele amaphethini kumadijithi angumphumela ukuze uthole usuku lwakho lokuzalwa ku-Pi noma uthole ukulandelana kwamadijithi adumile njenge-"Feynman Point" (okuyisithupha 9 ngokulandelana endaweni enedijithi engu-762). Ayikho imikhawulo eqinile enanini lamadijithi, uma uhlangabezana nokumiswa yiqhwa sicela ubheke "Izixwayiso" ngezansi.
Shiya amazwana ngesikhathi sakho sokubala se-Pi kufomula ye-AGM+FFT yamadijithi ayisigidi esingu-1. Futhi izinombolo eziningi ongazibala, ezihlola inkumbulo yefoni yakho. I-Nexus 6p yombhali ithatha isekhondi elingu-5.7 ngedijithi eyisigidi esingu-1. Qaphela ukuthi i-algorithm ye-AGM+FFT isebenza ngamandla angu-2, ngakho-ke ukubala amadijithi ayizigidi ezingu-10 kuthatha isikhathi esiningi kanye nenkumbulo njengamadijithi ayizigidi ezingu-16 (ukunemba kwangaphakathi kuboniswa kokuphumayo). Kuma-multi-core processors i-RealPi ihlola ukusebenza kwengqikithi eyodwa. Ukuze uthole isikhathi esinembile sebhentshimakhi qinisekisa ukuthi azikho ezinye izinhlelo zokusebenza ezisebenzayo futhi nefoni yakho ayishisi ngokwanele ukuthi icindezele i-CPU.
Sesha umsebenzi:
Sebenzisa lokhu ukuze uthole amaphethini ku-Pi njengosuku lwakho lokuzalwa. Ukuze uthole imiphumela engcono kakhulu bala okungenani amadijithi ayisigidi usebenzisa ifomula ye-AGM + FFT, bese ukhetha inketho yemenyu ethi "Sesha Amaphethini".
Nasi isifinyezo se-algorithms etholakalayo:
-AGM + FFT ifomula (I-Arithmetic Geometric Mean): Lena enye yezindlela ezitholakalayo ezisheshayo zokubala i-Pi, futhi iyifomula ezenzakalelayo esetshenziswa i-RealPi uma ucindezela u-"Qala". Isebenza njengekhodi yomdabu ye-C++ futhi isekelwe ohlelweni luka-Takuya Ooura lwe-pi_fftc6. Ezigidini eziningi zamadijithi kungadinga inkumbulo eningi, okuvamise ukuba yisici esikhawulelayo ekutheni mangaki amadijithi ongawabala.
-Ifomula kaMachin: Le fomula yatholwa nguJohn Machin ngo-1706. Ayisheshi njenge-AGM + FFT, kodwa ikubonisa wonke amadijithi ka-Pi anqwabelana ngesikhathi sangempela njengoba ukubala kuqhubeka. Khetha le fomula kumenyu yezilungiselelo bese ucindezela "Qala". Ibhalwe nge-Java kusetshenziswa i-BigDecimal class. Izikhathi zokubala zingase ziqale ukuba zinde cishe amadijithi angu-200,000, kodwa emafonini esimanje ungakwazi ukubala futhi ubuke amadijithi ayisigidi esingu-1 usebenzisa i-Machin uma unesineke.
Idijithi ye-Nth yefomula ka-Pi ka-Gourdon: Le fomula ibonisa ukuthi kungenzeka (ngokumangalisayo) ukubala amadijithi edesimali ka-Pi "phakathi" ngaphandle kokubala amadijithi andulele, futhi idinga inkumbulo encane kakhulu. Lapho ucindezela inkinobho ethi "Nth Digit" i-RealPi inquma amadijithi ayi-9 ka-Pi agcina ngokuma kwedijithi oyicacisayo. Isebenza njengekhodi yomdabu ye-C++ futhi isekelwe ohlelweni luka-Xavier Gourdon lwe-pidec. Yize ishesha kunefomula kaMachin ayikwazi ukushaya ifomula ye-AGM + FFT ngesivinini.
-Idijithi ye-N yefomula ka-Pi ka-Bellard: I-algorithm ka-Gourdon yedijithi engu-Nth ye-Pi ayikwazi ukusetshenziswa kumadijithi angu-50 okuqala, ngakho le fomula ka-Fabrice Bellard isetshenziswa esikhundleni salokho uma amadijithi angu-< 50.
Ezinye Izinketho:
Uma unika amandla inketho ethi "Bala lapho ulele" i-RealPi izoqhubeka ibala ngenkathi isikrini sakho sicishiwe, iwusizo lapho ubala amadijithi amaningi e-Pi. Nakuba ungabali noma ngemva kokuba ukubala sekuphelile idivayisi yakho izolala ubuthongo obujulile njengenjwayelo.
Izexwayiso:
Lolu hlelo lokusebenza lungadonsa ibhethri lakho ngokushesha uma ubala isikhathi eside, ikakhulukazi uma inketho ethi "Bala lapho ulele".
Isivinini sokubala sincike kusivinini se-CPU nenkumbulo yedivayisi yakho. Ngezinombolo ezinkulu zamadijithi i-RealPi ingase inqamuke ngokungalindelekile noma ingakhiqizi impendulo. Kungase futhi kuthathe isikhathi eside kakhulu ukusebenza (iminyaka). Lokhu kungenxa yenani elikhulu lememori kanye/noma isikhathi se-CPU esidingekayo. Umkhawulo ophezulu enanini lamadijithi ongakwazi ukubala uncike kudivayisi yakho ye-Android.
Izinguquko kunketho ethi "Bala lapho ulele" ziqala ukusebenza esibalweni esilandelayo se-Pi, hhayi phakathi nesibalo.
Kubuyekezwe ngo-
Mey 17, 2023