From 13b937219e934c78d3861dafd5d0166625dc7a9f Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Wed, 19 Jul 2023 20:58:29 +0000 Subject: [PATCH] Documentation for aaf84ab08fb9c24def02549461b5f83b4f348d35 --- annotated.html | 9 +- annotated_dup.js | 7 +- classes.html | 6 +- d0/d51/approximate__pi_8cpp.html | 119 +++++++------- d0/d51/approximate__pi_8cpp.js | 6 +- ...ddf1224851353fc92bfbff6f499fa97_cgraph.md5 | 1 - ...3bb8ccf42aaf7375a83e91490eda1e_cgraph.map} | 20 +-- ...83bb8ccf42aaf7375a83e91490eda1e_cgraph.md5 | 1 + ...3bb8ccf42aaf7375a83e91490eda1e_cgraph.svg} | 46 +++--- ...ccf42aaf7375a83e91490eda1e_cgraph_org.svg} | 46 +++--- ...8dca7b867074164d5f45b0f3851269d_cgraph.md5 | 1 - ...6f6b31b5ad750f1fe042a706a4e3d4_cgraph.map} | 18 +-- ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 | 1 + ...6f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg} | 48 +++--- ...31b5ad750f1fe042a706a4e3d4_cgraph_org.svg} | 48 +++--- d2/d27/approximate__pi_8cpp__incl.map | 16 +- d2/d27/approximate__pi_8cpp__incl.md5 | 2 +- d2/d27/approximate__pi_8cpp__incl.svg | 50 ++++-- d2/d27/approximate__pi_8cpp__incl_org.svg | 50 ++++-- dd/d47/namespacemath.html | 67 ++++---- dd/d47/namespacemath.js | 2 +- ...f7f2a6d91f1ca6c89698792aea3f188_cgraph.map | 2 +- ...f7f2a6d91f1ca6c89698792aea3f188_cgraph.md5 | 2 +- ...f7f2a6d91f1ca6c89698792aea3f188_cgraph.svg | 2 +- ...a6d91f1ca6c89698792aea3f188_cgraph_org.svg | 2 +- de/d4f/structmath_1_1_point.html | 131 ---------------- df/d7f/structmath_1_1_point-members.html | 117 -------------- globals_func_m.html | 2 +- globals_func_t.html | 4 +- globals_i.html | 2 +- globals_m.html | 2 +- globals_t.html | 4 +- hierarchy.html | 83 +++++----- hierarchy.js | 5 +- inherit_graph_100.map | 2 +- inherit_graph_100.md5 | 2 +- inherit_graph_100.svg | 10 +- inherit_graph_101.map | 2 +- inherit_graph_101.md5 | 2 +- inherit_graph_101.svg | 10 +- inherit_graph_102.map | 2 +- inherit_graph_102.md5 | 2 +- inherit_graph_102.svg | 10 +- inherit_graph_103.map | 2 +- inherit_graph_103.md5 | 2 +- inherit_graph_103.svg | 10 +- inherit_graph_104.map | 2 +- inherit_graph_104.md5 | 2 +- inherit_graph_104.svg | 10 +- inherit_graph_105.map | 2 +- inherit_graph_105.md5 | 2 +- inherit_graph_105.svg | 4 +- inherit_graph_106.map | 3 - inherit_graph_106.md5 | 1 - inherit_graph_106.svg | 21 --- inherit_graph_61.map | 2 +- inherit_graph_61.md5 | 2 +- inherit_graph_61.svg | 10 +- inherit_graph_62.map | 2 +- inherit_graph_62.md5 | 2 +- inherit_graph_62.svg | 10 +- inherit_graph_63.map | 2 +- inherit_graph_63.md5 | 2 +- inherit_graph_63.svg | 10 +- inherit_graph_64.map | 2 +- inherit_graph_64.md5 | 2 +- inherit_graph_64.svg | 10 +- inherit_graph_65.map | 2 +- inherit_graph_65.md5 | 2 +- inherit_graph_65.svg | 10 +- inherit_graph_66.map | 2 +- inherit_graph_66.md5 | 2 +- inherit_graph_66.svg | 8 +- inherit_graph_67.map | 2 +- inherit_graph_67.md5 | 2 +- inherit_graph_67.svg | 14 +- inherit_graph_68.map | 2 +- inherit_graph_68.md5 | 2 +- inherit_graph_68.svg | 15 +- inherit_graph_69.map | 2 +- inherit_graph_69.md5 | 2 +- inherit_graph_69.svg | 10 +- inherit_graph_70.map | 2 +- inherit_graph_70.md5 | 2 +- inherit_graph_70.svg | 10 +- inherit_graph_71.map | 2 +- inherit_graph_71.md5 | 2 +- inherit_graph_71.svg | 10 +- inherit_graph_72.map | 2 +- inherit_graph_72.md5 | 2 +- inherit_graph_72.svg | 4 +- inherit_graph_73.map | 2 +- inherit_graph_73.md5 | 2 +- inherit_graph_73.svg | 12 +- inherit_graph_74.map | 2 +- inherit_graph_74.md5 | 2 +- inherit_graph_74.svg | 10 +- inherit_graph_75.map | 2 +- inherit_graph_75.md5 | 2 +- inherit_graph_75.svg | 12 +- inherit_graph_76.map | 2 +- inherit_graph_76.md5 | 2 +- inherit_graph_76.svg | 12 +- inherit_graph_77.map | 2 +- inherit_graph_77.md5 | 2 +- inherit_graph_77.svg | 12 +- inherit_graph_78.map | 2 +- inherit_graph_78.md5 | 2 +- inherit_graph_78.svg | 4 +- inherit_graph_79.map | 2 +- inherit_graph_79.md5 | 2 +- inherit_graph_79.svg | 13 +- inherit_graph_80.map | 2 +- inherit_graph_80.md5 | 2 +- inherit_graph_80.svg | 13 +- inherit_graph_81.map | 2 +- inherit_graph_81.md5 | 2 +- inherit_graph_81.svg | 12 +- inherit_graph_82.map | 2 +- inherit_graph_82.md5 | 2 +- inherit_graph_82.svg | 12 +- inherit_graph_83.map | 2 +- inherit_graph_83.md5 | 2 +- inherit_graph_83.svg | 13 +- inherit_graph_84.map | 2 +- inherit_graph_84.md5 | 2 +- inherit_graph_84.svg | 10 +- inherit_graph_85.map | 2 +- inherit_graph_85.md5 | 2 +- inherit_graph_85.svg | 10 +- inherit_graph_86.map | 6 +- inherit_graph_86.md5 | 2 +- inherit_graph_86.svg | 54 ++++++- inherit_graph_87.map | 6 +- inherit_graph_87.md5 | 2 +- inherit_graph_87.svg | 54 +------ inherit_graph_88.map | 2 +- inherit_graph_88.md5 | 2 +- inherit_graph_88.svg | 13 +- inherit_graph_89.map | 2 +- inherit_graph_89.md5 | 2 +- inherit_graph_89.svg | 13 +- inherit_graph_90.map | 2 +- inherit_graph_90.md5 | 2 +- inherit_graph_90.svg | 13 +- inherit_graph_91.map | 2 +- inherit_graph_91.md5 | 2 +- inherit_graph_91.svg | 13 +- inherit_graph_92.map | 2 +- inherit_graph_92.md5 | 2 +- inherit_graph_92.svg | 10 +- inherit_graph_93.map | 2 +- inherit_graph_93.md5 | 2 +- inherit_graph_93.svg | 10 +- inherit_graph_94.map | 2 +- inherit_graph_94.md5 | 2 +- inherit_graph_94.svg | 10 +- inherit_graph_95.map | 2 +- inherit_graph_95.md5 | 2 +- inherit_graph_95.svg | 10 +- inherit_graph_96.map | 2 +- inherit_graph_96.md5 | 2 +- inherit_graph_96.svg | 4 +- inherit_graph_97.map | 14 +- inherit_graph_97.md5 | 2 +- inherit_graph_97.svg | 122 ++++++++++++++- inherit_graph_98.map | 14 +- inherit_graph_98.md5 | 2 +- inherit_graph_98.svg | 123 +-------------- inherit_graph_99.map | 2 +- inherit_graph_99.md5 | 2 +- inherit_graph_99.svg | 13 +- inherits.html | 83 +++++----- namespacemembers.html | 2 +- namespacemembers_type.html | 2 +- namespaces.html | 1 - navtreedata.js | 20 +-- navtreeindex0.js | 74 ++++----- navtreeindex1.js | 34 ++-- navtreeindex10.js | 32 ++-- navtreeindex11.js | 26 ++-- navtreeindex12.js | 20 +-- navtreeindex13.js | 6 +- navtreeindex2.js | 32 ++-- navtreeindex3.js | 8 +- navtreeindex4.js | 4 +- navtreeindex5.js | 26 ++-- navtreeindex6.js | 32 ++-- navtreeindex7.js | 38 ++--- navtreeindex8.js | 22 +-- navtreeindex9.js | 18 +-- search/all_11.js | 32 ++-- search/all_12.js | 4 +- search/all_14.js | 4 +- search/all_15.js | 8 +- search/all_4.js | 4 +- search/all_7.js | 4 +- search/all_8.js | 4 +- search/all_a.js | 18 +-- search/all_e.js | 2 +- search/classes_10.js | 9 +- search/classes_2.js | 4 +- search/classes_f.js | 2 +- search/functions_13.js | 4 +- search/functions_14.js | 10 +- search/functions_6.js | 147 +++++++++--------- search/functions_7.js | 4 +- search/functions_9.js | 12 +- search/functions_d.js | 2 +- search/typedefs_4.js | 2 +- 210 files changed, 1229 insertions(+), 1468 deletions(-) delete mode 100644 d0/d51/approximate__pi_8cpp_a0ddf1224851353fc92bfbff6f499fa97_cgraph.md5 rename d0/d51/{approximate__pi_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.map => approximate__pi_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.map} (54%) create mode 100644 d0/d51/approximate__pi_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.md5 rename d0/d51/{approximate__pi_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.svg => approximate__pi_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg} (59%) rename d0/d51/{approximate__pi_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph_org.svg => approximate__pi_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph_org.svg} (52%) delete mode 100644 d0/d51/approximate__pi_8cpp_aa8dca7b867074164d5f45b0f3851269d_cgraph.md5 rename d0/d51/{approximate__pi_8cpp_a0ddf1224851353fc92bfbff6f499fa97_cgraph.map => approximate__pi_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map} (58%) create mode 100644 d0/d51/approximate__pi_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 rename d0/d51/{approximate__pi_8cpp_a0ddf1224851353fc92bfbff6f499fa97_cgraph.svg => approximate__pi_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg} (61%) rename d0/d51/{approximate__pi_8cpp_a0ddf1224851353fc92bfbff6f499fa97_cgraph_org.svg => approximate__pi_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg} (55%) delete mode 100644 de/d4f/structmath_1_1_point.html delete mode 100644 df/d7f/structmath_1_1_point-members.html delete mode 100644 inherit_graph_106.map delete mode 100644 inherit_graph_106.md5 delete mode 100644 inherit_graph_106.svg diff --git a/annotated.html b/annotated.html index bdb63a1a3..4e6a4691b 100644 --- a/annotated.html +++ b/annotated.html @@ -172,7 +172,6 @@ $(document).ready(function(){initNavTree('annotated.html',''); initResizable();
Implementation to calculate an estimate of the number π (Pi). More...
-#include <iostream>#include <vector>#include <cassert>#include <cstdlib>#include <iostream>#include <vector>-Classes | |
| struct | math::Point |
Namespaces | |
| namespace | math |
| for IO operations | |
+Typedefs | |
| +using | math::Point = { double x |
| structure of points containing two numbers, x and y, such that 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1. | |
Functions | |
| double | math::approximate_pi (const std::vector< Point > &pts) |
| double | math::approximate_pi (const std::vector< Point > &pts) |
| This function uses the points in a given vector 'pts' (drawn at random) to return an approximation of the number π. | |
| static void | test () |
| Self-test implementations. | |
| int | main (int argc, char *argv[]) |
| Main function. | |
| static void | tests () |
| Self-test implementations. | |
| int | main () |
| Main function. | |
+Variables | |
| +double | math::y |
Implementation to calculate an estimate of the number π (Pi).
-We take a random point P with coordinates (x, y) such that 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1. If x² + y² ≤ 1, then the point is inside the quarter disk of radius 1, otherwise the point is outside. We know that the probability of the point being inside the quarter disk is equal to π/4 double approx(vector<Point> &pts) which will use the points pts (drawn at random) to return an estimate of the number π
We take a random point P with coordinates (x, y) such that 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1. If x² + y² ≤ 1, then the point is inside the quarter disk of radius 1, else the point is outside. We know that the probability of the point being inside the quarter disk is equal to π/4 double approx(vector<Point> &pts) which will use the points pts (drawn at random) to return an estimate of the number π
Main function.
-| argc | commandline argument count (ignored) |
| argv | commandline array of arguments (ignored) |
| static void test | +static void tests | ( | ) | @@ -216,28 +210,31 @@ Here is the call graph for this function: |