diff options
author | rupak | 2020-01-21 19:05:09 +0530 |
---|---|---|
committer | rupak | 2020-01-21 19:05:09 +0530 |
commit | d2f4d30ebcad7430e4f0495cae5c2b3a16be73ce (patch) | |
tree | 8987d169ad87e930f137122a450c02dc5d13dcc5 /help/en_US/scilab_en_US_help/gflineq.html | |
parent | 36aca8aaaee5cf8cb5452268fd07c0b558b000a3 (diff) | |
download | FOSSEE-Communication-Systems-Toolbox-master.tar.gz FOSSEE-Communication-Systems-Toolbox-master.tar.bz2 FOSSEE-Communication-Systems-Toolbox-master.zip |
Diffstat (limited to 'help/en_US/scilab_en_US_help/gflineq.html')
-rw-r--r-- | help/en_US/scilab_en_US_help/gflineq.html | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/help/en_US/scilab_en_US_help/gflineq.html b/help/en_US/scilab_en_US_help/gflineq.html new file mode 100644 index 0000000..4c3d2f7 --- /dev/null +++ b/help/en_US/scilab_en_US_help/gflineq.html @@ -0,0 +1,85 @@ +<html><head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> + <title>gflineq</title> + <style type="text/css" media="all"> + @import url("scilab_code.css"); + @import url("xml_code.css"); + @import url("c_code.css"); + @import url("style.css"); + </style> + </head> + <body> + <div class="manualnavbar"> + <table width="100%"><tr> + <td width="30%"> + <span class="previous"><a href="gfcosets.html"><< gfcosets</a></span> + + </td> + <td width="40%" class="center"> + <span class="top"><a href="section_1f049b1e3111e3d1d538e7603f77f589.html">FOSSEE_Communication_Systems_Toolbox</a></span> + + </td> + <td width="30%" class="next"> + <span class="next"><a href="gfrepcov.html">gfrepcov >></a></span> + + </td> + </tr></table> + <hr /> + </div> + + + + <span class="path" dir="ltr"><a href="index.html">FOSSEE_Communication_Systems_Toolbox</a> >> <a href="section_1f049b1e3111e3d1d538e7603f77f589.html">FOSSEE_Communication_Systems_Toolbox</a> > gflineq</span> + + <br /><br /> + <div class="refnamediv"><h1 class="refname">gflineq</h1> + <p class="refpurpose">This function finds a solution for linear equation Ax = b over a prime Galois field.</p></div> + + +<div class="refsection"><h3 class="title">Description</h3> + <p class="para">[X, SFLAG] = GFLINEQ(A, B) returns a particular solution (X) of AX=B in GF(2). +If the equation has no solution, then X is empty and SFLAG = 0 else SFLAG = 1.</p> + <p class="para">[X, SFLAG]= GFLINEQ(A, B, P) returns a particular solution of the linear +equation A X = B in GF(P) and SFLAG=1. +If the equation has no solution, then X is empty and SFLAG = 0.</p> + <p class="para"></p> + <p class="para"></p></div> + +<div class="refsection"><h3 class="title">Examples</h3> + <div class="programlisting"><table border="0" width="100%"><tr><td width="98%"><pre class="scilabcode"><span class="scilabid">A</span><span class="scilaboperator">=</span><span class="scilabopenclose">[</span><span class="scilabnumber">1</span> <span class="scilabnumber">0</span> <span class="scilabnumber">1</span><span class="scilabdefault">;</span> <span class="scilabnumber">1</span> <span class="scilabnumber">1</span> <span class="scilabnumber">0</span><span class="scilabdefault">;</span> <span class="scilabnumber">1</span> <span class="scilabnumber">1</span> <span class="scilabnumber">1</span><span class="scilabopenclose">]</span> +<span class="scilabid">p</span><span class="scilaboperator">=</span><span class="scilabnumber">3</span> +<span class="scilabopenclose">[</span><span class="scilabid">x</span><span class="scilabdefault">,</span><span class="scilabid">vld</span><span class="scilabopenclose">]</span> <span class="scilaboperator">=</span> <span class="scilabid">gflineq</span><span class="scilabopenclose">(</span><span class="scilabid">A</span><span class="scilabdefault">,</span><span class="scilabopenclose">[</span><span class="scilabnumber">1</span><span class="scilabdefault">;</span><span class="scilabnumber">0</span><span class="scilabdefault">;</span><span class="scilabnumber">1</span><span class="scilabopenclose">]</span><span class="scilabdefault">,</span><span class="scilabid">p</span><span class="scilabopenclose">)</span> +<a class="scilabcommand" href="scilab://disp">disp</a><span class="scilabopenclose">(</span><span class="scilabid">A</span><span class="scilabdefault">,</span><span class="scilabstring">'</span><span class="scilabstring">A=</span><span class="scilabstring">'</span><span class="scilabopenclose">)</span> +<a class="scilabcommand" href="scilab://disp">disp</a><span class="scilabopenclose">(</span><span class="scilabid">x</span><span class="scilabdefault">,</span><span class="scilabstring">'</span><span class="scilabstring">x=</span><span class="scilabstring">'</span><span class="scilabopenclose">)</span><span class="scilabdefault">;</span> +<span class="scilabskeyword">if</span><span class="scilabopenclose">(</span><span class="scilabid">vld</span><span class="scilabopenclose">)</span> +<a class="scilabcommand" href="scilab://disp">disp</a><span class="scilabopenclose">(</span><span class="scilabstring">'</span><span class="scilabstring">Linear equation has solution x</span><span class="scilabstring">'</span><span class="scilabopenclose">)</span> +<span class="scilabskeyword">else</span> +<a class="scilabcommand" href="scilab://disp">disp</a><span class="scilabopenclose">(</span><span class="scilabstring">'</span><span class="scilabstring">Linear equation has no solution and x is empty</span><span class="scilabstring">'</span><span class="scilabopenclose">)</span> +<span class="scilabskeyword">end</span> +<a class="scilabcommand" href="scilab://disp">disp</a><span class="scilabopenclose">(</span> <a class="scilabmacro" href="scilab://pmodulo">pmodulo</a><span class="scilabopenclose">(</span><span class="scilabid">A</span><span class="scilaboperator">*</span><span class="scilabid">x</span><span class="scilabdefault">,</span><span class="scilabid">p</span><span class="scilabopenclose">)</span><span class="scilabdefault">,</span><span class="scilabstring">'</span><span class="scilabstring">B =</span><span class="scilabstring">'</span><span class="scilabopenclose">)</span></pre></td><td valign="top"><a href="scilab://scilab.execexample/"><img src="ScilabExecute.png" border="0"/></a></td><td valign="top"><a href="scilab://scilab.editexample/"><img src="ScilabEdit.png" border="0"/></a></td><td></td></tr></table></div></div> + +<div class="refsection"><h3 class="title">Authors</h3> + <ul class="itemizedlist"><li class="member">Pola Lakshmi Priyanka, IIT Bombay</li></ul></div> + <br /> + + <div class="manualnavbar"> + <table width="100%"> + <tr><td colspan="3" class="next"><a href="http://bugzilla.scilab.org/enter_bug.cgi?product=Scilab%20software&component=Documentation%20pages" class="ulink">Report an issue</a></td></tr> +<tr> + <td width="30%"> + <span class="previous"><a href="gfcosets.html"><< gfcosets</a></span> + + </td> + <td width="40%" class="center"> + <span class="top"><a href="section_1f049b1e3111e3d1d538e7603f77f589.html">FOSSEE_Communication_Systems_Toolbox</a></span> + + </td> + <td width="30%" class="next"> + <span class="next"><a href="gfrepcov.html">gfrepcov >></a></span> + + </td> + </tr></table> + <hr /> + </div> + </body> +</html> |