newton: some cleanup
monomial: fix type
Merge pull request #35 from michalt/semilinear

Cleanup and minor fix