Skip to content

Commit

Permalink
Merge pull request #30 from nmsderp/dev
Browse files Browse the repository at this point in the history
Added more types of pi
  • Loading branch information
dimkauzh authored Aug 19, 2023
2 parents ea1598c + ef733ad commit 8998dc7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/wiki/math.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
## PI
## Types of PI in Fusion Engine
These are used for certain miscellaneous math things.

Full version of pi (3.141592653589793238462643383279502884197):
```python
main.math.PI
```
A slightly smaller version that python's math library uses (3.141592653589793):
```python
main.math.SMALLERPI
```
An extremely shortened version of pi (3.14):
```python
main.math.SMALLPI
```
## Euler's Number
You can read more about it [here.](https://en.wikipedia.org/wiki/E_(mathematical_constant))
```python
Expand Down
2 changes: 2 additions & 0 deletions src/fusionengine/files/math.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Math:
def __init__(self):
self.PI = 3.141592653589793238462643383279502884197
self.SMALLERPI = 3.141592653589793
self.SMALLPI = 3.14
self.EULERNUMBER = 2.718281828459045

0 comments on commit 8998dc7

Please sign in to comment.