mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #704] [CLOSED] Create cosx_series.c #1188
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/704
Author: @harshrey
Created: 10/22/2020
Status: ❌ Closed
Base:
master← Head:Added-cosx-series📝 Commits (4)
4fea82cCreate cosx_series.c8cfe889Update cosx_series.c8cdb36dUpdate cosx_series.cdceffa3Update cosx_series.c📊 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
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.