Skip to content

Commit

Permalink
Describing how to use the 'mathem' package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabri432 committed Sep 4, 2022
1 parent c4a56c3 commit 8f15cfa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions readme.it.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ func main() {

```

- Using mathematical functions
```go
import (
"fmt"
"github.com/Gabri432/gophysics/mathem"
)

func main() {
fmt.Println(mathem.Pi) <<< Writing a constant
}

=== Output ===
3.1415926535

```

## Struttura del progetto
### Cartelle

Expand All @@ -80,6 +96,7 @@ func main() {
#### mathem
- `constants.go`, dove tutte le costanti matematiche sono presenti.
- `conversions.go`, dove tutte le principali funzioni di calcolo matematico sono presenti.

## Contribuire al progetto
- Se vuoi aggiungere una feature o fare un aggiustamento fai un giro in questa pagina su come fare: [Contribuire a gophysics](https://github.com/Gabri432/gophysics/blob/master/.github/CONTRIBUTING.it.md)

Expand Down
16 changes: 16 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,22 @@ func main() {

```

- Using mathematical functions
```go
import (
"fmt"
"github.com/Gabri432/gophysics/mathem"
)

func main() {
fmt.Println(mathem.Pi) <<< Writing a constant
}

=== Output ===
3.1415926535

```

## Project Structure
### Folders

Expand Down

0 comments on commit 8f15cfa

Please sign in to comment.