pub struct F3D(/* private fields */);
Expand description
Representation of a 3D function
Implementations§
Source§impl F3D
impl F3D
Sourcepub fn derive(&self, var: char, order: usize) -> Self
pub fn derive(&self, var: char, order: usize) -> Self
Computes the nth-derivative
use ruut_functions::{f3d, F3D};
assert_eq!(f3d!("x+zy^2").derive('y', 2), f3d!("2z"));
Source§impl F3D
impl F3D
Sourcepub fn set_par(&mut self, name: &str, val: f64)
pub fn set_par(&mut self, name: &str, val: f64)
Set param value by name
use ruut_functions::{f3d, F3D};
let mut f = f3d!("x+y[a]^2+z"); // Default value of param in 0
f.set_par("a", 6.9);
assert!(f.eval(4.20, 1.0,7.0) - 58.81 < 0.0001);
f.set_par("a", 1.2);
assert!(f.eval(4.20, 1.0, 7.0) - 12.64 < 0.0001);
Trait Implementations§
Source§impl AddAssign<F1D> for F3D
impl AddAssign<F1D> for F3D
Source§fn add_assign(&mut self, rhs: F1D)
fn add_assign(&mut self, rhs: F1D)
Performs the
+=
operation. Read moreSource§impl AddAssign<F2D> for F3D
impl AddAssign<F2D> for F3D
Source§fn add_assign(&mut self, rhs: F2D)
fn add_assign(&mut self, rhs: F2D)
Performs the
+=
operation. Read moreSource§impl DivAssign<F1D> for F3D
impl DivAssign<F1D> for F3D
Source§fn div_assign(&mut self, rhs: F1D)
fn div_assign(&mut self, rhs: F1D)
Performs the
/=
operation. Read moreSource§impl DivAssign<F2D> for F3D
impl DivAssign<F2D> for F3D
Source§fn div_assign(&mut self, rhs: F2D)
fn div_assign(&mut self, rhs: F2D)
Performs the
/=
operation. Read moreSource§impl MulAssign<F1D> for F3D
impl MulAssign<F1D> for F3D
Source§fn mul_assign(&mut self, rhs: F1D)
fn mul_assign(&mut self, rhs: F1D)
Performs the
*=
operation. Read moreSource§impl MulAssign<F2D> for F3D
impl MulAssign<F2D> for F3D
Source§fn mul_assign(&mut self, rhs: F2D)
fn mul_assign(&mut self, rhs: F2D)
Performs the
*=
operation. Read moreSource§impl SubAssign<F1D> for F3D
impl SubAssign<F1D> for F3D
Source§fn sub_assign(&mut self, rhs: F1D)
fn sub_assign(&mut self, rhs: F1D)
Performs the
-=
operation. Read moreSource§impl SubAssign<F2D> for F3D
impl SubAssign<F2D> for F3D
Source§fn sub_assign(&mut self, rhs: F2D)
fn sub_assign(&mut self, rhs: F2D)
Performs the
-=
operation. Read moreimpl StructuralPartialEq for F3D
Auto Trait Implementations§
impl Freeze for F3D
impl RefUnwindSafe for F3D
impl Send for F3D
impl Sync for F3D
impl Unpin for F3D
impl UnwindSafe for F3D
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more