python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why is a macro "not declared in this scope" in my code?
I have googled to no end but have not found a definitive answer.
I use:
#include <cmath>
to include the M_PI macro (for the value of pi) in my header file.
I use M_PI in the class I have create...
Gregor Hartl Watters
Votes: 0
Answers: 2
How do I get the GUI to recognize that my output is actually set up?
The output on GPIO 27 is connected to a dc motor. The code is to get the motor to start from a GUI using, tkinter button widget. When I run the program RC5 the motor works fine. When I run the GUI to ...
Zavier Jacob
Votes: 0
Answers: 0
Continued fraction for pi in Python
I'm trying to approximate pi using continued fraction.
I'm using this formula.
After many hours, I ended up here.
for i in range(1,15,1):
e = ((2*i - 1) ** 2)
b = (e / (6 + ((2*(i+1) - 1) ** ...
user18701301
Votes: 0
Answers: 2