Skip to content

Commit

Permalink
Merge pull request #28 from coco33920/fn-vectorisation
Browse files Browse the repository at this point in the history
Fn vectorisation
  • Loading branch information
vanilla-extracts authored Nov 23, 2023
2 parents b17c10b + 609dcd9 commit d55c85c
Show file tree
Hide file tree
Showing 7 changed files with 392 additions and 3 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# Version 2.10.0 : Add function vectorization

## Function
Add vectorization to
- cos
- sin
- tan
- cosh
- sinh
- tanh
- acos
- asin
- atan
- exp
- ln/log
- sqrt

# Version 2.9.10 : Fix bug, vector plotting

## Plot
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mini-calc"
version = "2.9.10"
version = "2.10.0"
license = "GPL-3.0-or-later"
description = "A fully-featured minimalistic configurable rust calculator"
homepage = "https://calc.nwa2coco.fr"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ You can round to the nth decimal with the round function, by default it round to

![img.png](docs/assets/round.png)

### Vectorization

Function are now vectorized! Just pass a vector as an argument!

![](docs/assets/sqrt_vectorized.png)

## Logic

You can now use logic! I implemented the following functions:
Expand Down
Binary file added docs/assets/sqrt_vectorized.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/configuration/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ pub fn load_color(string: String) -> Color {

pub fn replace_variable(str: String) -> String {
str.replace("%author%", "Charlotte Thomas")
.replace("%version%", "v2.9.10")
.replace("%version%", "v2.10.0")
.to_string()
}

Expand Down
Loading

0 comments on commit d55c85c

Please sign in to comment.