Commit Graph

194 Commits

Author SHA1 Message Date
dependabot[bot]
dedd83810e Bump rustix from 0.35.11 to 0.35.15
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.35.11 to 0.35.15.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.35.11...v0.35.15)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-29 20:54:56 +08:00
blpsk
4f5480ba81 Added log2 function 2023-09-01 23:58:03 +08:00
Ivan Tham
37e29774be Separate library and binary
Partially fix #6
2023-02-13 22:32:55 +08:00
Tshepang Mbambo
54fd0ba94d
add missing instruction (#70) 2023-01-24 11:23:08 +05:30
Ivan Tham
ff3db97772 Release 0.3.1
Previous release had a re-tag which caused a confusion, creating a new
release to resolve it.
2022-11-08 09:52:05 +08:00
saguywalker
f35b13b388 re-order boolean conditions
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2022-10-24 15:19:05 +08:00
saguywalker
d51d596ed5 simplify if else condition 2022-10-24 15:19:05 +08:00
Caleb Maclennan
c74aadf75f Update Cargo lock file in sync with toml manifest 2022-10-23 10:47:37 +08:00
Ivan Tham
a9870b0e8c Release 0.3.0 2022-10-21 08:50:43 +08:00
Ivan Tham
5406cda731
Bump dependencies (#61) 2022-10-21 08:45:53 +08:00
Ivan Tham
0723bcecc8
Overflow (#60)
* fixed errors with factorial going to 0.0 when overflowed by using f64, side effects include precision loss and error handling of any overflows being improved

* Hardcoded 0! as 1.0

* fixed code comment

* Add test for negative factorial

* Fix import

Co-authored-by: Dev380 <49997896+Dev380@users.noreply.github.com>
2022-10-20 10:29:26 +08:00
Ivan Tham
f208ddd66f Switch to terminal_size
term_size is unmaintained
fix #59
2022-08-17 22:17:32 +08:00
Ivan Tham
0476f60dfa Update release name 2022-07-05 08:01:07 +08:00
Ivan Tham
dd88c7d779 Use include in matrix 2022-07-05 07:33:11 +08:00
Ivan Tham
7f8790daff Update release action 2022-07-05 07:30:45 +08:00
Ivan Tham
f66d7ff36a Release as args 2022-07-05 01:20:23 +08:00
Ivan Tham
a0a760e59e Release after build 2022-07-05 01:18:51 +08:00
Ivan Tham
5fb617fd40 Put release as args 2022-07-05 01:15:40 +08:00
Ivan Tham
341a911e9c Add alpha.1 to version 2022-07-05 01:14:45 +08:00
Ivan Tham
500c9e6325 Update help in readme 2022-07-05 01:12:42 +08:00
Ivan Tham
e9971acc25 Add github release workflows 2022-07-05 01:09:42 +08:00
Ivan Tham
4487c8ca9d Cache github actions 2022-07-05 01:00:21 +08:00
Ivan Tham
aa94253e38 Bump rust edition 2021 2022-07-05 00:56:33 +08:00
Ivan Tham
0a40df447f Fix clippy warnings 2022-07-02 00:24:02 +08:00
Ivan Tham
5fe2272ebb Move format to fmt 2022-07-02 00:22:36 +08:00
Ivan Tham
693ff1c1fa Use std fmt for base 10
Fix #58 but the issue might still happen for other bases
2022-07-02 00:19:40 +08:00
Ivan Tham
820bf8c4e1 Remove old extern crate 2022-07-01 19:54:48 +08:00
Ivan Tham
2f943ac30b
Allow function to accept multiple arguments (#56)
* Allow function to accept multiple arguments

* Add lexer for multiple arguments

* Swap test assert_eq! order

Usually in rust result is on the right, at least what I see.

* Fix issue with postfix

* Update docs to include new functions

* Update test on log_n_base

* Refactor reverse order of is_finite
2022-06-29 00:45:55 +08:00
Ivan Tham
7cc7775d25 Allow larger factorial with u128
Partially fix #22
2022-06-25 11:51:40 +08:00
Ivan Tham
10a48b594a Refactor lexer 2022-06-25 01:11:53 +08:00
Ivan Tham
84c5c51f3f Refactor radian conversion 2022-06-25 00:22:31 +08:00
Ivan Tham
7ca67c6d60 Use &'static str for token_from_fn 2022-06-25 00:14:37 +08:00
Ivan Tham
7109e54d68 Refactor clap 2022-06-25 00:10:22 +08:00
Ivan Tham
78e61f7061 Refactor test 2022-06-24 22:51:32 +08:00
Ivan Tham
864e192382 Fix clippy issues 2022-06-24 22:40:02 +08:00
Ivan Tham
8cdcf1fc7b Switch to once_cell 2022-06-24 22:27:39 +08:00
Ivan Tham
5ddc95f2df Bump dependencies 2022-06-24 22:02:42 +08:00
Ivan Tham
69213f2cac Add audit 2022-06-24 21:42:42 +08:00
Ivan Tham
a55ee6986c Add rust toolchain 2022-06-24 20:50:31 +08:00
Ivan Tham
7f737fc516 Add CI 2022-06-24 19:19:16 +08:00
dependabot[bot]
e1583c7710 Bump thread_local from 1.0.1 to 1.1.4
Bumps [thread_local](https://github.com/Amanieu/thread_local-rs) from 1.0.1 to 1.1.4.
- [Release notes](https://github.com/Amanieu/thread_local-rs/releases)
- [Commits](https://github.com/Amanieu/thread_local-rs/compare/v1.0.1...1.1.4)

---
updated-dependencies:
- dependency-name: thread_local
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 10:32:48 +08:00
Akshay
e0f8da7d12 remove leftovers from niv 2022-04-05 19:19:25 +05:30
Akshay
2886114cf6 bump to v0.3.0 2022-04-05 19:18:19 +05:30
Ivan Tham
9fa2823b39
Merge pull request #51 from Ma27/exp-and-round
Add functions `exp()`, `exp2()` & `round()`; fix minor readline issues
2022-01-05 12:01:48 +08:00
Maximilian Bosch
3f0f8d9f0f
readline: explain constant highlighting regex 2022-01-04 17:47:02 +01:00
Maximilian Bosch
7e673fc429
rustyline: disable default features 2022-01-04 17:38:09 +01:00
Maximilian Bosch
794a795f52
Implement a few more testcases 2021-12-30 18:16:46 +01:00
Maximilian Bosch
a18e994ae5
Add round() function 2021-12-30 18:06:50 +01:00
Maximilian Bosch
18a1ce8f03
Allow expressions such as e2 as multiplication of e * 2 2021-12-30 18:06:50 +01:00
Maximilian Bosch
7d1db014eb
Deduplicate references to functions & constants 2021-12-30 18:06:49 +01:00