summaryrefslogtreecommitdiff
path: root/macros/sosbreak.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/sosbreak.sci')
-rw-r--r--macros/sosbreak.sci7
1 files changed, 3 insertions, 4 deletions
diff --git a/macros/sosbreak.sci b/macros/sosbreak.sci
index c82935f..1074133 100644
--- a/macros/sosbreak.sci
+++ b/macros/sosbreak.sci
@@ -1,13 +1,10 @@
-//Author: Parthasarathi Panda
-//parthasarathipanda314@gmail.com
+
function [zerosort,g]=sosbreak(p)
//function for breaking a polynomial in second order polynomials and an extra linear term (g)
//where
//g:-the interger multiple obtained after breaking the polynomial
//zerosort:-the array of the broken polynomials
//p:-the input polynomial
-
-
//EXAMPLE:
//v=[1+4*%s+6*%s^2+4*%s^3+%s^4];
// [zerosort,g]=sosbreak(v);
@@ -20,6 +17,8 @@ function [zerosort,g]=sosbreak(p)
// zerosort(2)
// 2
//1.0000000 + 2s + s
+//Author: Parthasarathi Panda
+//parthasarathipanda314@gmail.com
//NOTE :To verify the output use coeff(zerosort(1)) and coeff(zerosort(2))