<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>20731</bug_id>
          
          <creation_ts>2009-07-09 20:40:30 +0400</creation_ts>
          <short_desc>ошибки в листинге 9.21</short_desc>
          <delta_ts>2009-07-15 11:52:20 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Books</classification>
          <product>scilab</product>
          <component>misc</component>
          <version>не указана</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="puchegor">puchegor</reporter>
          <assigned_to name="kirill">kirill</assigned_to>
          <cc>EAlekseev</cc>
    
    <cc>bertis</cc>
          
          <qa_contact name="kirill">kirill</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>94469</commentid>
    <comment_count>0</comment_count>
    <who name="puchegor">puchegor</who>
    <bug_when>2009-07-09 20:40:30 +0400</bug_when>
    <thetext>&quot;Scilab: Решение инженерных и математических задач&quot;, глава 9, 9.5, листинг 9.21:
допущены две ошибки:
0. Дана строка--&gt; summa=summa-A(int(N/2)*2+1,int(N/2)*2+1);
    так, если N нечетно, мы вычтем элемент A(N,N), что ошибочно.
   должно быть--&gt; summa=summa-A(int(N/2)+1,int(N/2)+1);
1. строка --&gt; maximum=A(1,1); kolichestvo=1;
    в таком случае, если элемент A(1,1) будет максимальным,
    то этот элеменит посчитается два раза.
   должно быть--&gt; maximum=A(1,1); kolichestvo=0;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>