Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
pi
Commits
50e2f2e7
Commit
50e2f2e7
authored
Nov 10, 2019
by
Neil Gershenfeld
Browse files
Update pi.c
parent
f61dfe02
Pipeline
#4600
passed with stage
in 2 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
C/pi.c
View file @
50e2f2e7
...
@@ -19,7 +19,6 @@ void main() {
...
@@ -19,7 +19,6 @@ void main() {
b
=
0
.
75
;
b
=
0
.
75
;
c
=
0
.
25
;
c
=
0
.
25
;
pi
=
0
;
pi
=
0
;
pi
=
0
;
for
(
i
=
1
;
i
<=
NPTS
;
++
i
)
for
(
i
=
1
;
i
<=
NPTS
;
++
i
)
pi
+=
a
/
((
i
-
b
)
*
(
i
-
c
));
pi
+=
a
/
((
i
-
b
)
*
(
i
-
c
));
clock_gettime
(
CLOCK_REALTIME
,
&
tend
);
clock_gettime
(
CLOCK_REALTIME
,
&
tend
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment