Skip to content

runtime error #12

Description

@zangmolk

hi
I got errors for last line of code when I run this example. I run this example in RustRover IDE:

example:
use eqsolver::multivariable::MultiVarNewtonFD;
use nalgebra::{vector, Vector2};

let f = |v: Vector2| vector![v[0].powi(2) - v[1] - 1., v[0] * v[1] - 2.];
let solution = MultiVarNewtonFD::new(f).solve(vector![1., 1.]); // Starting guess is (1, 1)

errors:
error[E0631]: type mismatch in closure arguments
error[E0599]: the method solve exists for struct MultiVarNewtonFD<_, _, {closure@src\main.rs:39:14: 39:31}>, but its trait bounds were not satisfied

your sincerity
Behnam

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions