Документация к Math.NET Symbolics


Polynomial.commonFactors

1: 
val commonFactors: x : Expression ->  Expression
CompiledName: CommonFactors

Описание

Находит общий множитель полинома


Пример

1: 
2: 
3: 
4: 
5: 
6: 
7: 
8: 
9: 
let expr = "4*x*y - 8*x*y*z" |> Infix.parseOrUndefined

expr
|> Infix.format
|> printfn "%s"

Polynomial.commonFactors expr
|> Infix.format
|> printfn "%s"

Вывод

1: 
2: 
4*x*y - 8*x*y*z
4*x*y