Commit Graph

89 Commits

Author SHA1 Message Date
Samuel Pires 05ff277ebf
feat: add Secant Method (#1255)
* feat: add secant method

* Apply suggestions from code review

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

* fixed indentation

* added more tests

* better clarification for the tolerance parameter

* removed redundant comments

* chore: apply suggestions from code review

---------

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
Co-authored-by: scpires <sc.pires@campus.fct.unl.pt>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-06-02 10:43:21 -06:00
Aybars Nazlica a537cf3645
feat: add bisection method (#1233)
* feat: add bisection method

* fix function documentation

* fix float to zero comparison

* fix error definition

* fix the sign function

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* change float type to double type

* fix sign comparison equals to zero

* remove pow function

* Update numerical_methods/bisection_method.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* add parameter docs

* update docs

* Update numerical_methods/bisection_method.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update numerical_methods/bisection_method.c

Co-authored-by: David Leal <halfpacho@gmail.com>

* update docs

---------

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
2023-04-05 16:02:54 -06:00
Satbek Abdyldayev 28fc15c65b
fix: possible segmentation faults in `numerical_methods/mean.c` (#805)
* fixed possible segmentation fault

Fixed possible segmentation fault when no arg is supplied

* Update mean.c

various small changes to print statements.
2021-02-23 12:36:43 -06:00
Krishna Vedala 3c1b585656
[enhancement] updated cmake checks (#581)
* added header file checks

* cmake cleanup and better use of checks

* fixed bug in numerical_methods/CMake

* add docs to cmake
2020-07-23 10:44:18 -04:00
Krishna Vedala f261bf590b
fix file for clang-tidy errors 2020-07-10 18:39:01 -04:00
Krishna Vedala 2150c35846
fix printing long double 2020-07-01 20:49:27 -04:00
Krishna Vedala cb999259cf
make all doubles as long double 2020-07-01 20:37:24 -04:00
Krishna Vedala 6470f0318b
fixed documentations 2020-06-28 15:18:52 -04:00
github-actions 6f98288110 formatting source-code for 5bba04b671 2020-06-28 15:25:37 +00:00
Krishna Vedala b833e27964
fix link references from fork to main repo 2020-06-28 11:22:42 -04:00
Krishna Vedala 72c9b26a13
corected implicit euler function 2020-06-11 12:42:59 -04:00
Krishna Vedala 2ba9626477
fix documentation 2020-06-10 15:03:59 -04:00
Krishna Vedala 9737426296
remove image widths 2020-06-10 15:03:08 -04:00
Krishna Vedala c5ce24d32c
change problem back to original ODE 2020-06-10 14:36:42 -04:00
Krishna Vedala 03e8924845
change description tag to details 2020-06-10 14:33:01 -04:00
Krishna Vedala 07e4661c7e
added van der pol oscillator example 2020-06-10 14:32:40 -04:00
Krishna Vedala 2caed65a9c
added van der pol oscillator example 2020-06-10 14:31:36 -04:00
Krishna Vedala 990583f2c4
added semi-implicit euler method 2020-06-10 13:25:41 -04:00
Krishna Vedala 85131746cc
functions for the loop instead - better modularity 2020-06-10 13:19:40 -04:00
Krishna Vedala 63ea12bc3d
update independent variable in the main loop 2020-06-10 12:50:09 -04:00
Krishna Vedala beade2db10
remove additional step update from within functions 2020-06-10 12:46:26 -04:00
Krishna Vedala 9ed9e3e107
placeholder for see-also - semi implicit euler 2020-06-10 12:44:45 -04:00
Krishna Vedala 4979f68c24
added stdlib for atof() 2020-06-10 12:26:48 -04:00
Krishna Vedala 82479dc327
added see-also to forward euler method 2020-06-10 12:21:14 -04:00
Krishna Vedala 142b25e34e
added midpoint euler algorithm 2020-06-10 12:20:45 -04:00
Krishna Vedala 464a197701
fix doc 2020-06-10 12:07:32 -04:00
Krishna Vedala 8ea77b8ca4
added first order ODE solver using Euler method 2020-06-10 11:36:44 -04:00
Krishna Vedala d2410f9c28
update qr_eigen valueswith selfcontained tests
Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-09 13:53:55 -04:00
Krishna Vedala 2c00b915a9
dynamically allocated memory must be freed
Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-08 12:16:58 -04:00
Krishna Vedala 6a9383f564
Revert "free dynamically allocated memory and use 1D arrays for simplicity and efficiency"
This reverts commit 56aeff3f07.
2020-06-08 12:14:14 -04:00
Krishna Vedala 56aeff3f07
free dynamically allocated memory and use 1D arrays for simplicity and efficiency
Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com>
2020-06-08 11:08:45 -04:00
Krishna Vedala 390dc21946
fix author line 2020-06-07 15:19:15 -04:00
Krishna Vedala df25b21a04
[feat:] added LU decomposition of a square matrix 2020-06-07 14:57:30 -04:00
Krishna Vedala f9d506fdb0
added authorship to docs 2020-06-06 14:51:49 -04:00
Krishna Vedala d162f62dce
added doc to missing define 2020-06-05 15:11:36 -04:00
Krishna Vedala 8aeb36bac8 bug fix - first dimension of matrices points to pointers, hence get pointer size
Signed-off-by: Krishna Vedala <krishna.vedala@ieee.org>
2020-06-05 14:26:30 -04:00
Krishna Vedala 0c4be6aaba document QR algorithms 2020-06-05 12:20:37 -04:00
Krishna Vedala 8242411530 add file doc brief 2020-06-05 09:23:39 -04:00
Krishna Vedala 5c80d69ef0 add images to doc 2020-06-05 09:22:59 -04:00
Krishna Vedala aa98625b45 find openmp declared required only once
added subfolders after finding openmp
2020-05-31 10:49:26 -04:00
Krishna Vedala 5ea4194fbc fix newton-raphson root filename in CMAKE to ignore 2020-05-30 14:34:17 -04:00
github-actions 466ccaa407 formatting filenames 909e15d8be 2020-05-30 18:26:19 +00:00
Krishna Vedala acf891047a algorithm for realtime computation of data statistics 2020-05-30 14:01:02 -04:00
github-actions 0779a2b70d formatting source-code for b388e4a309 2020-05-29 20:23:24 +00:00
Krishna Vedala 93254e1e22 normalize path for simpsons rule 2020-05-29 16:16:24 -04:00
Krishna Vedala 3b3775dce7 fixed: label should be only at a statement and not a declaration 2020-05-29 14:09:04 -04:00
Krishna Vedala b1e1923580 check if math library is available and include if present 2020-05-29 14:04:14 -04:00
Krishna Vedala d4f202cbea force include math library for each target 2020-05-29 13:49:28 -04:00
Krishna Vedala 4caa46c10c remove dependencies on function_timer 2020-05-29 12:34:58 -04:00
Krishna Vedala 8f45f7e680 fix cmake - requires use of /Za on MSVC 2020-05-29 12:34:24 -04:00