From c68eff2be1284143e3b3d3bd7a6683eabac44822 Mon Sep 17 00:00:00 2001 From: kaushal-kumar-it Date: Wed, 7 Jan 2026 10:55:41 +0530 Subject: [PATCH] feat: add cosine wave visualization to `simulate/iter/cosine-wave` --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../simulate/iter/cosine-wave/README.md | 5 +- .../iter/cosine-wave/docs/img/cosine_wave.svg | 49 +++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 lib/node_modules/@stdlib/simulate/iter/cosine-wave/docs/img/cosine_wave.svg diff --git a/lib/node_modules/@stdlib/simulate/iter/cosine-wave/README.md b/lib/node_modules/@stdlib/simulate/iter/cosine-wave/README.md index 694e15745790..ea9c176cee20 100644 --- a/lib/node_modules/@stdlib/simulate/iter/cosine-wave/README.md +++ b/lib/node_modules/@stdlib/simulate/iter/cosine-wave/README.md @@ -43,7 +43,10 @@ f(t; \tau, a, \varphi) = a \cos \frac{2\pi(t-\varphi)}{\tau} where `τ` is the period, `a` is the peak amplitude, and `φ` is the phase offset. - + diff --git a/lib/node_modules/@stdlib/simulate/iter/cosine-wave/docs/img/cosine_wave.svg b/lib/node_modules/@stdlib/simulate/iter/cosine-wave/docs/img/cosine_wave.svg new file mode 100644 index 000000000000..769d92e769ee --- /dev/null +++ b/lib/node_modules/@stdlib/simulate/iter/cosine-wave/docs/img/cosine_wave.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + Time (radians) + Amplitude + + + + + + + + + + + 1 + 0 + -1 + + + + + + Cosine waveform over two periods +