Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14040

Polynomial expressions [closed]

$
0
0

Is it possible with regex find polynomial coefficients and degrees this type of polynomials?

(9.2+ln5*sin60)*x^5+2.4*x^4-5.7*x^3-4.1*x^2+2.8*x-9.1

In output should be

 9.2+ln5*sin60   -> 5           2.4   -> 4          -5.7   -> 3          -4.1   -> 2           2.8   -> 1          -9.1   -> 0

Viewing all articles
Browse latest Browse all 14040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>