Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs417-lecture-examples
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Kennedy
cs417-lecture-examples
Commits
484d0ee5
Commit
484d0ee5
authored
4 years ago
by
Thomas Kennedy
Browse files
Options
Downloads
Patches
Plain Diff
Update Monte Carlo Example from end of semester lecture
parent
b35eb797
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MonteCarloIntegration/.gitignore
+1
-0
1 addition, 0 deletions
MonteCarloIntegration/.gitignore
MonteCarloIntegration/monte_carlo_integration.py
+2
-1
2 additions, 1 deletion
MonteCarloIntegration/monte_carlo_integration.py
with
3 additions
and
1 deletion
MonteCarloIntegration/.gitignore
0 → 100644
+
1
−
0
View file @
484d0ee5
log.txt
This diff is collapsed.
Click to expand it.
MonteCarloIntegration/monte_carlo_integration.py
+
2
−
1
View file @
484d0ee5
...
...
@@ -86,7 +86,7 @@ def main_without_a_table_flip():
integration
"""
num_points
=
int
(
sys
.
argv
[
1
])
num_points
=
int
(
sys
.
argv
[
1
])
# Unused in this version of main
limit_a
=
float
(
sys
.
argv
[
2
])
limit_b
=
float
(
sys
.
argv
[
3
])
max_magnitude
=
int
(
sys
.
argv
[
4
])
...
...
@@ -111,5 +111,6 @@ def main_without_a_table_flip():
if
__name__
==
"
__main__
"
:
# naive_main()
# not_so_naive_main()
main_without_a_table_flip
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment