[PR #704] [CLOSED] Create cosx_series.c #1188

Open
opened 2026-01-29 15:18:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/704
Author: @harshrey
Created: 10/22/2020
Status: Closed

Base: masterHead: Added-cosx-series


📝 Commits (4)

📊 Changes

1 file changed (+55 additions, -0 deletions)

View changed files

numerical_methods/cosx_series.c (+55 -0)

📄 Description

Given code is used to find the value Cos x upto the desired limit, using the Taylor's series expansion
Input: X, and number of terms that need to be calculated
Output: value of Cos x upto the given limit
Test Example:
Enter X (deg): 60
Enter the limit upto which you want to expand the series: 3
Cos(60.0) = 0.501823

Description of Change

References

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/704 **Author:** [@harshrey](https://github.com/harshrey) **Created:** 10/22/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `Added-cosx-series` --- ### 📝 Commits (4) - [`4fea82c`](https://github.com/TheAlgorithms/C/commit/4fea82c380c160039abf191b32ecb25dc0aafa4e) Create cosx_series.c - [`8cfe889`](https://github.com/TheAlgorithms/C/commit/8cfe8890be5044877cfaee7727280858e473a347) Update cosx_series.c - [`8cdb36d`](https://github.com/TheAlgorithms/C/commit/8cdb36d16270a64eb88e6926a590b97a02ce4612) Update cosx_series.c - [`dceffa3`](https://github.com/TheAlgorithms/C/commit/dceffa3ce802df9930249a2bfc97bdd95f5c7c62) Update cosx_series.c ### 📊 Changes **1 file changed** (+55 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `numerical_methods/cosx_series.c` (+55 -0) </details> ### 📄 Description Given code is used to find the value Cos x upto the desired limit, using the Taylor's series expansion Input: X, and number of terms that need to be calculated Output: value of Cos x upto the given limit Test Example: Enter X (deg): 60 Enter the limit upto which you want to expand the series: 3 Cos(60.0) = 0.501823 #### Description of Change <!-- Thank you for your Pull Request. Please provide a description above and review the requirements below. Contributors guide: https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md --> #### References <!-- Add any reference to previous pull-request or issue --> #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: <!-- Please add a one-line description for developers or pull request viewers --> <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/704"><img src="https://gitpod.io/api/apps/github/pbs/github.com/harshrey/C.git/dceffa3ce802df9930249a2bfc97bdd95f5c7c62.svg" /></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:18:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1188