changed project name to reflect cargo package
This commit is contained in:
parent
573806e8e1
commit
fbd2802f08
2 changed files with 26 additions and 2 deletions
24
README.md
24
README.md
|
@ -9,6 +9,30 @@ data science, and computer science.
|
||||||
|
|
||||||
More information is available on the [project wiki](https://git.vwolfe.io/valerie/qm/wiki).
|
More information is available on the [project wiki](https://git.vwolfe.io/valerie/qm/wiki).
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### Manual Install
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Release Binary</summary>
|
||||||
|
Copy the compiled binary from the <a href="https://git.vwolfe.io/valerie/qm/releases">releases page</a>
|
||||||
|
to a directory in <code>$PATH</code>, such as <code>/usr/bin/</code>.
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Compile from Source</summary>
|
||||||
|
Compile using cargo with the command <code>cargo build --release</code> and copy
|
||||||
|
the file from <code>target/release/</code> to a directory in <code>$PATH</code>,
|
||||||
|
such as <code>/usr/bin/</code>.
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Package Managers
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Cargo: <code>quickmath</code></summary>
|
||||||
|
Install the package using Cargo with the command <code>cargo install quickmath</code>.
|
||||||
|
</details>
|
||||||
|
|
||||||
## Libraries
|
## Libraries
|
||||||
|
|
||||||
- [evalexpr](https://crates.io/crates/evalexpr) — expression evaluator
|
- [evalexpr](https://crates.io/crates/evalexpr) — expression evaluator
|
||||||
|
|
|
@ -15,7 +15,7 @@ pub fn fix(arg: &Value) -> EvalResult {
|
||||||
|
|
||||||
let count = args.len();
|
let count = args.len();
|
||||||
if count != 2 {
|
if count != 2 {
|
||||||
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2..=2, actual: count });
|
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2, actual: count });
|
||||||
}
|
}
|
||||||
|
|
||||||
let float = args[0].as_float()?;
|
let float = args[0].as_float()?;
|
||||||
|
@ -63,7 +63,7 @@ pub fn logarithm(arg: &Value) -> EvalResult {
|
||||||
output = value.log(base).into();
|
output = value.log(base).into();
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2..=2, actual: count });
|
return Err(EvalexprError::WrongFunctionArgumentAmount { expected: 2, actual: count });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Ok(output);
|
return Ok(output);
|
||||||
|
|
Loading…
Reference in a new issue