Regex to get cubic equation coefficients using JS

后端 未结 0 412
粉色の甜心
粉色の甜心 2020-12-30 01:32

I am having a cubic eqation -x^3-2.34x^2+ x-2 = 0 and I want to get the coefficient of it. I want to use regex to get it.

The result looks like this

相关标签:
回答
  • 消灭零回复
提交回复
热议问题