Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3869

Other • Value of Pi using Raspberry Pi -2

$
0
0

Code:

ubu@raspberrypi:~ $ gp <pik.gpReading GPRC: /etc/gprcGPRC Done.                  GP/PARI CALCULATOR Version 2.15.2 (released)            arm running linux (arm/GMP-6.2.1 kernel) 32-bit version      compiled: Dec 31 2022, gcc version 12.2.0 (Raspbian 12.2.0-10+rpi1)                           threading engine: pthread                (readline v8.2 disabled, extended help enabled)                     Copyright (C) 2000-2022 The PARI GroupPARI/GP is free software, covered by the GNU General Public License, and comesWITHOUT ANY WARRANTY WHATSOEVER.Type ? for help, \q to quit.Type ?18 for how to get moral (and possibly technical) support.parisize = 4000000, primelimit = 500000, nbthreads = 4%1 = 1   realprecision = 105 significant digits (100 digits displayed)  ***   last result: cpu time 1 ms, real time 1 ms.Goodbye!ubu@raspberrypi:~ $ inxi -bSystem:  Host: raspberrypi Kernel: 6.6.62+rpt-rpi-v7 arch: armv7l bits: 32 Console: pty pts/2    Distro: Raspbian GNU/Linux 12 (bookworm)Machine:  Type: ARM System: Raspberry Pi 2 Model B Rev 1.1 details: BCM2835 rev: a01041    serial: 000000009dea94a9CPU:  Info: quad core ARMv7 v7l [MCP] speed (MHz): avg: 900 min/max: 600/900Graphics:  Device-1: bcm2835-hdmi driver: vc4_hdmi v: N/A  Device-2: bcm2835-vc4 driver: vc4_drm v: N/A  Display: server: No display server data found. Headless machine? tty: 168x44  API: OpenGL Message: GL data unavailable in console. Try -G --displayNetwork:  Device-1: bcm2835-sdhci driver: N/A  Device-2: Microchip (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter type: USB    driver: smsc95xxDrives:  Local Storage: total: 29.72 GiB used: 4.93 GiB (16.6%)Info:  Processes: 134 Uptime: 7h 6m Memory: 996.9 MiB used: 349.7 MiB (35.1%) gpu: 76 MiB Init: systemd  target: multi-user (3) Shell: Bash inxi: 3.3.26ubu@raspberrypi:~ $
pi_value
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940>

Code:

#timer =1\p 100        \\ Set precision to 100 decimal placespi_value = Pi; \\ Compute πwrite("pi_100_digits.txt", Str(pi_value)); \\ Save π to a file##

Statistics: Posted by geev03 — Sat Nov 30, 2024 8:43 pm



Viewing all articles
Browse latest Browse all 3869

Trending Articles