ax^3+bx^2+cx+d=0
math.numerics を使用して 3 次多項式の根を見つけようとしています。パッケージは素晴らしいですが、使い始めるのに苦労しています。ルートを見つける方法と、 Githubからサンプル パッケージを実行する方法の簡単な説明を誰か説明してもらえませんか?
パッケージへの参照を追加しました
using MathNet.Numerics;
これは私が試したことです:
var roots = FindRoots.Cubic(d, c, b, a);
double root1=roots.item1;
double root2=roots.item2;
double root3=roots.item3;
しかし、エラーが発生します"The type 'Complex' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Numerics'"
。System.Numerics を使用して追加するとエラーが発生し、問題は解決しません。
何か提案はありますか?