mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-03 21:36:09 +00:00
[PR #704] Create cosx_series.c #1193
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?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/704
State: closed
Merged: No
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: