summaryrefslogtreecommitdiff
path: root/notes/Oct-6.org
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-09 21:08:25 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-10-09 21:08:25 -0600
commitadda6869cb2a07984b48c39fcd70ee76449c353d (patch)
tree3aff88b65292e2ab0e108781206d954a015b2e33 /notes/Oct-6.org
parentb35e3998333e8190bf07ade51dba30773b3a3d0b (diff)
downloadcmath-adda6869cb2a07984b48c39fcd70ee76449c353d.tar.gz
cmath-adda6869cb2a07984b48c39fcd70ee76449c353d.zip
updates 10/9
Diffstat (limited to 'notes/Oct-6.org')
-rw-r--r--notes/Oct-6.org13
1 files changed, 13 insertions, 0 deletions
diff --git a/notes/Oct-6.org b/notes/Oct-6.org
new file mode 100644
index 0000000..8cbff29
--- /dev/null
+++ b/notes/Oct-6.org
@@ -0,0 +1,13 @@
+#+BEGIN_SRC c
+ for (int k = 0; i < (n - 1); k++) {
+ for (int i = k+1; i< n; i++) {
+ float factor = a[i][k] / a[k][k];
+ for (int j = k+1; j < k; j++) {
+ a[i][j] = a[i][j] - factor * a[k][j];
+ }
+ b[i] = b[i] - factor * b[k];
+ }
+ }
+#+END_SRC
+
+