feat: add function for polynomial differentiation
This commit is contained in:
parent
b595276143
commit
4b1bca8ee0
5 changed files with 69 additions and 22 deletions
|
|
@ -97,6 +97,14 @@ pub fn gfpoly_sqrt(args: &Value) -> Result<Polynomial> {
|
|||
Ok(result)
|
||||
}
|
||||
|
||||
pub fn gfpoly_diff(args: &Value) -> Result<Polynomial> {
|
||||
let poly_f = Polynomial::from_c_array(&args["F"].clone());
|
||||
|
||||
let result = poly_f.diff();
|
||||
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue