https://github.com/amirmahdyjebreily/cosine-approximation
This program approximates cosine in terms of radians and degrees by using the algorithm of cosine approximation formula with sigma.
https://github.com/amirmahdyjebreily/cosine-approximation
cosine csharp mathematics
Last synced: 6 months ago
JSON representation
This program approximates cosine in terms of radians and degrees by using the algorithm of cosine approximation formula with sigma.
- Host: GitHub
- URL: https://github.com/amirmahdyjebreily/cosine-approximation
- Owner: AmirMahdyJebreily
- Archived: true
- Created: 2023-01-26T09:28:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T13:29:43.000Z (over 2 years ago)
- Last Synced: 2025-02-23T23:53:44.589Z (8 months ago)
- Topics: cosine, csharp, mathematics
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cosine Approximation With C#
This program approximates cosine in terms of radians and degrees by using the algorithm of cosine approximation formula with sigma.
## How to work ?
This code, includes CosApptoximation class that's a static class and append some Extention Methods to Single Types and this methodes are compute the cosine of a angle like follow :
```csharp
int d = 90;
Console.WriteLine($"Cosine of {d} degree is : {JCSCos.CosApproximation.DegreeApCos(d)}");
```
With the above code, you will get an output like this:
```
Cosine of 90 degree is : 0
```
---
Thank you for visiting my profile