Questions tagged [pi]
π (pi) is a mathematical constant whose value is the ratio of any Euclidean plane circle's circumference to its diameter; this is the same value as the ratio of a circle's area to the square of its radius. It is approximately equal to 3.14159265 in decimal notation. For Raspberry Pi, please tag with "raspberry-pi".
827
questions
0
votes
1
answer
25
views
Raspberry Pi IP routing keeps adding default eth0 with metrics 100
I have a Raspberry Pi (latest version of x64 OS with desktop for Pi3 B+) with an apache2 webserver and it connects to a router via WiFi wlan0. It should be available through the Internet via a domain ...
0
votes
0
answers
15
views
PI System Explorer attribute created from Analyses: Pi point cannot be found
I am using pi system explorer to create tags in the analyses tab using math that references already existing tags. At the end of the calculation code I write I map it to attributes but while it works ...
0
votes
0
answers
53
views
Break the loop if stdin has value
I can not stop the loop if there is not a gap in data send via UART.
If there is gap in data it listens to the command but does not read the UART data anymore.
I would like to
I read data on UART and ...
0
votes
0
answers
38
views
i2c device not giving output when connecting to raspberry pi 4b
I am connecting i2c device (for displaying results) to raspberry pi 4b using GPIO pins all the connection is okay from raspberry pi to i2c display. and the address of i2c device i am putting ...
0
votes
1
answer
41
views
Why isn't my function giving the desired number of decimal digits for PI?
I have been trying to make a function that calculates pi to n digits using the Leibniz' formula. I am using the decimal module to be able to set how many decimal points I wish to output, but for some ...
0
votes
0
answers
21
views
Request to website is blocked when running program on Raspberry Pi but not on my PC (windows machine)
I am trying to send a request to a website using the python requests library. The request works fine on my windows machine but when using on my Raspberry Pi (exact same code) the request is blocked. ...
0
votes
0
answers
37
views
PI zero 2 w and virtualhere and otg port
I have a PC with Windows, that cannot be connected to the internet or install drivers (for security reasons) and I need to connect a dongle that I have on my server (this server has the virtualhere ...
1
vote
1
answer
121
views
Bellard's formula always generates 3.14506
I've been working on a simple C++ program to approximate pi with Bellard's formula. No matter what number of digits it tries calculating to, it results in the number 3.145063.
I tried changing it from ...
4
votes
4
answers
153
views
Pi becomes inaccurate with increasing the number of samples
When I change the value on line 28(which I pointed out with an arrow) from 0.00001 to 0.000001 the value of Pi becomes inaccurate. It's counterintuitive to me as to how increasing precision will make ...
0
votes
0
answers
40
views
Pi Virtual Keyboard doesn't focus in text box
On a PI 4 I have installed "Matchbox Keyboard" and "Onboard" but can get neither one to focus where I want to write text. I am trying to write something in a browser search bar so ...
-3
votes
4
answers
84
views
Why does python limit the number of decimals?
pi=3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
U = 314
D = 100
print(U/D,U,D)
best=3.0
while True:
if abs((U+1)/D-pi)<abs(U/D-pi):
...
0
votes
1
answer
24
views
How to setup nist nbis in raspbian raspberry pi 4
I tried installing the NIST NBIS and followed the procedures inside the REL folder but I kept on getting error.
I tried the step by step command
Steps
But I always get this error on my raspberry pi in ...
0
votes
1
answer
288
views
How to install gcc-5.5.0 in raspberry pi 4B-64bit
I have a project that requires a low version of the gcc compiler to be installed on the Raspberry PI, and I have tried two approaches, neither of which has worked.
I tried two approaches.
The first ...
2
votes
0
answers
41
views
Pi spigot algorithm occasionally gives wrong values
I have made a script to implement the algorithm described by this, and it works for the vast majority of digits, but every so often it gets a couple digits wrong.
It usually seems to have a pattern of ...
1
vote
1
answer
41
views
Why my Monte Carlo estimation of pi plot is empty?
I am doing an exercice on the Monte Carlo approximation of pi.
For some reason the plot is empty when all the variables are defined, could you help me ?
Here is the code :
set.seed(1)
M = 10^4
U =...